Allow generating new passwords for existing entries

This commit is contained in:
2024-03-07 19:09:23 -05:00
parent 300516c3cd
commit 3a90bef48a
2 changed files with 26 additions and 3 deletions
+4 -3
View File
@@ -108,16 +108,17 @@ func main() {
switch args[3] {
case "show", "-s":
cli.AddEntry(targetLocation, false, 1)
case "update", "-u": // TODO offline.GenUpdate(targetLocation), exit after run
case "update", "-u":
cli.GenUpdate(targetLocation, true)
default:
cli.HelpGen()
}
} else if args[3] == "update" || args[3] == "-u" {
switch args[4] {
case "show", "-s":
cli.AddEntry(targetLocation, false, 1)
cli.GenUpdate(targetLocation, false)
default:
cli.AddEntry(targetLocation, true, 1)
cli.GenUpdate(targetLocation, true)
}
}
cli.HelpGen()