mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-27 20:36:29 -04:00
Allow automatic generation of GPG keys
This commit is contained in:
+8
-5
@@ -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\"):")
|
||||
|
||||
Reference in New Issue
Block a user