mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-01 06:46:33 -04:00
Add current UNIX timestamp to generated GPG ID, identify key based on it
This commit is contained in:
+4
-4
@@ -9,13 +9,13 @@ 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
|
||||||
// select GPG key
|
|
||||||
uidSlice := offline.GpgUIDListGen()
|
uidSlice := offline.GpgUIDListGen()
|
||||||
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
||||||
gpgID = uidSlice[gpgIDInt-1]
|
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