mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-02 23:27:22 -04:00
Implement initial entry readout formatting
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user