mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-29 21:36:38 -04:00
Implement temporary "init" functionality
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"github.com/rwinkhart/MUTN/src/offline"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func TempInitCli() {
|
||||
// gpgID
|
||||
cmd := exec.Command("gpg", "-k")
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Run()
|
||||
gpgID := input("GPG key ID:")
|
||||
|
||||
// textEditor
|
||||
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"vi\"):")
|
||||
|
||||
offline.TempInit(map[string]string{"textEditor": textEditor, "gpgID": gpgID})
|
||||
}
|
||||
Reference in New Issue
Block a user