Implement password hiding in entry readouts

This commit is contained in:
2024-03-01 22:11:59 -05:00
parent 51313eb307
commit b17a3ae372
2 changed files with 13 additions and 8 deletions
+3 -3
View File
@@ -26,12 +26,13 @@ func main() {
// entry reader shortcut (if no other arguments are supplied)
if argsCount == 1 {
cli.EntryReaderShortcut(targetLocation)
cli.EntryReaderShortcut(targetLocation, true)
// perform other operations on the entry (if other arguments are supplied)
} else if argsCount == 2 {
switch args[1] {
case "show", "-s":
cli.EntryReaderShortcut(targetLocation, false)
case "shear": // TODO offline.Shear(targetLocation), exit after run
case "gen": // TODO offline.Gen(targetLocation), exit after run
case "copy":
@@ -42,7 +43,6 @@ func main() {
cli.HelpAdd()
default:
cli.HelpMain()
}
} else if argsCount == 3 {