Allow automatic generation of GPG keys

This commit is contained in:
RandyTheSilly committed 2024-03-07 23:35:38 -05:00
1 parent 7d17af9b61
commit 5a12eaf4cf
3 files changed
+50 -12

No files matched your search

+8 -5
View File
@@ -6,11 +6,14 @@ import (
func TempInitCli() {
// gpgID
//generateGPG := inputBinary("Auto-generate GPG key?")
uidSlice := offline.GpgUIDListGen()
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
gpgID := uidSlice[gpgIDInt-1]
var gpgID string
if inputBinary("Auto-generate GPG key?") {
gpgID = offline.GpgKeyGen()
} else {
uidSlice := offline.GpgUIDListGen()
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
gpgID = uidSlice[gpgIDInt-1]
}
// textEditor
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"vi\"):")