mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-05 00:27:15 -04:00
Allow automatic generation of GPG keys
This commit is contained in:
+8
-5
@@ -6,11 +6,14 @@ import (
|
|||||||
|
|
||||||
func TempInitCli() {
|
func TempInitCli() {
|
||||||
// gpgID
|
// gpgID
|
||||||
//generateGPG := inputBinary("Auto-generate GPG key?")
|
var gpgID string
|
||||||
|
if inputBinary("Auto-generate GPG key?") {
|
||||||
uidSlice := offline.GpgUIDListGen()
|
gpgID = offline.GpgKeyGen()
|
||||||
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
} else {
|
||||||
gpgID := uidSlice[gpgIDInt-1]
|
uidSlice := offline.GpgUIDListGen()
|
||||||
|
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
||||||
|
gpgID = uidSlice[gpgIDInt-1]
|
||||||
|
}
|
||||||
|
|
||||||
// textEditor
|
// textEditor
|
||||||
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"vi\"):")
|
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"vi\"):")
|
||||||
|
|||||||
Reference in New Issue
Block a user