Implement initial GPG decryption

This commit is contained in:
2024-03-01 15:55:21 -05:00
parent fc2a6ab22f
commit cefb91f1f6
2 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ func main() {
if strings.HasPrefix(args[0], "/") {
targetLocation := offline.EntryRoot + offline.PathSeparator + args[0][1:]
if isFile, _ := offline.TargetIsFile(targetLocation, true); isFile {
// TODO decrypt and display the entry
fmt.Println("It's a file!")
// TODO properly display entry contents (with headers)
offline.DecryptGPG(targetLocation)
} else {
fmt.Println(offline.AnsiError + "Failed to read \"" + targetLocation + "\" - it is a directory" + offline.AnsiReset)
}