diff --git a/docs/man b/docs/man index 6d83b12..eaf9573 100644 --- a/docs/man +++ b/docs/man @@ -47,7 +47,6 @@ Manually synchronizing entries with the server: help Bring up the help menu version Display version and license information init Set up MUTN (generates libmutton.ini) - tweak Change configuration options (NOT YET IMPLEMENTED) copy Copy details of an entry to your clipboard edit Edit an existing entry gen Generate a new password diff --git a/mutn.go b/mutn.go index a4447ae..e658f7a 100644 --- a/mutn.go +++ b/mutn.go @@ -2,11 +2,12 @@ package main import ( "fmt" + "os" + "strings" + "github.com/rwinkhart/MUTN/src/backend" "github.com/rwinkhart/MUTN/src/cli" "github.com/rwinkhart/MUTN/src/sync" - "os" - "strings" ) func main() { @@ -165,7 +166,6 @@ func main() { case "tweak": fmt.Println(backend.AnsiError + "\"tweak\" is not yet implemented" + backend.AnsiReset) os.Exit(0) - // TODO backend.Tweak() case "copy": cli.HelpCopy() case "edit": diff --git a/src/cli/add.go b/src/cli/add.go index 1952fac..ef28adf 100644 --- a/src/cli/add.go +++ b/src/cli/add.go @@ -2,8 +2,9 @@ package cli import ( "fmt" - "github.com/rwinkhart/MUTN/src/backend" "os" + + "github.com/rwinkhart/MUTN/src/backend" ) // AddEntry creates a new entry at targetLocation by taking user input via CLI prompts @@ -25,7 +26,7 @@ func AddEntry(targetLocation string, hideSecrets bool, entryType uint8) { if entryType == 0 { password = inputHidden("Password:") } else { - password = backend.StringGen(inputInt("Password length:", -1), inputBinary("Generate a complex (special characters) password?"), 0.2) + password = backend.StringGen(inputInt("Password length:", -1), inputBinary("Generate a complex (special characters) password?"), 0.2, false) } totp := inputHidden("TOTP secret:") diff --git a/src/cli/edit.go b/src/cli/edit.go index 7e94ef8..32ecbee 100644 --- a/src/cli/edit.go +++ b/src/cli/edit.go @@ -60,7 +60,7 @@ func GenUpdate(targetLocation string, hideSecrets bool) { unencryptedEntry := backend.GetOldEntryData(targetLocation, 0) // generate a new password - unencryptedEntry[0] = backend.StringGen(inputInt("Password length:", -1), inputBinary("Generate a complex (special characters) password?"), 0.2) + unencryptedEntry[0] = backend.StringGen(inputInt("Password length:", -1), inputBinary("Generate a complex (special characters) password?"), 0.2, false) // write and preview the modified entry writeEntryCLI(targetLocation, unencryptedEntry, hideSecrets) diff --git a/src/cli/init.go b/src/cli/init.go index e3beca8..4a378c2 100644 --- a/src/cli/init.go +++ b/src/cli/init.go @@ -38,7 +38,7 @@ func TempInitCli() { sshUser := input("Remote SSH username:") sshPort := input("Remote SSH port:") sshIP := input("Remote SSH IP/domain:") - sshKey := expandPathWithHome(input("SSH private identity file path:")) // TODO implement generator and selector + sshKey := expandPathWithHome(input("SSH private identity file path:")) sshKeyProtected := inputBinary("Is the identity file password-protected?") // initialize libmutton directories diff --git a/src/cli/printInfo.go b/src/cli/printInfo.go index b6ef47c..66e4c96 100644 --- a/src/cli/printInfo.go +++ b/src/cli/printInfo.go @@ -24,7 +24,6 @@ This program comes with absolutely no warranty; type "mutn version" for details. help Bring up this menu version Display version and license information init Set up MUTN (generates libmutton.ini) - tweak Change configuration options (NOT YET IMPLEMENTED) copy Copy details of an entry to your clipboard edit Edit an existing entry gen Generate a new password