Implement initial entry readout formatting

This commit is contained in:
2024-03-01 18:26:05 -05:00
parent cefb91f1f6
commit 0afcdbb29b
2 changed files with 58 additions and 2 deletions
+1 -2
View File
@@ -23,8 +23,7 @@ func main() {
if strings.HasPrefix(args[0], "/") {
targetLocation := offline.EntryRoot + offline.PathSeparator + args[0][1:]
if isFile, _ := offline.TargetIsFile(targetLocation, true); isFile {
// TODO properly display entry contents (with headers)
offline.DecryptGPG(targetLocation)
cli.EntryReader(offline.DecryptGPG(targetLocation))
} else {
fmt.Println(offline.AnsiError + "Failed to read \"" + targetLocation + "\" - it is a directory" + offline.AnsiReset)
}