mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-29 21:36:38 -04:00
Add current UNIX timestamp to generated GPG ID, identify key based on it
This commit is contained in:
+6
-6
@@ -9,14 +9,14 @@ func TempInitCli() {
|
|||||||
// gpgID
|
// gpgID
|
||||||
var gpgID string
|
var gpgID string
|
||||||
if inputBinary("Auto-generate GPG key?") {
|
if inputBinary("Auto-generate GPG key?") {
|
||||||
offline.GpgKeyGen()
|
gpgID = offline.GpgKeyGen()
|
||||||
|
} else {
|
||||||
|
// select GPG key from menu
|
||||||
|
uidSlice := offline.GpgUIDListGen()
|
||||||
|
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
||||||
|
gpgID = uidSlice[gpgIDInt-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
// select GPG key
|
|
||||||
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 \"" + offline.FallbackEditor + "\"):")
|
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"" + offline.FallbackEditor + "\"):")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user