Implement untested MacOS clipboard support via pbcopy

This commit is contained in:
2024-03-03 22:36:20 -05:00
parent 207a4762b6
commit 0e6210f1af
4 changed files with 79 additions and 6 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import (
// DecryptGPG decrypts a GPG-encrypted file and returns the contents as a slice of (trimmed) strings
func DecryptGPG(targetLocation string) []string {
cmd := exec.Command("gpg", "--pinentry-mode", "loopback", "-q", "-d", targetLocation)
output, err := cmd.CombinedOutput()
output, err := cmd.Output()
if err != nil {
fmt.Println(AnsiError + "Failed to decrypt \"" + targetLocation + "\" - ensure it is a valid GPG-encrypted file and that you entered your passphrase correctly" + AnsiReset)
os.Exit(1)