Prepare to tag v0.1.0

This commit is contained in:
2024-04-16 11:33:06 -04:00
parent d4360c06ba
commit 3acaa607e4
4 changed files with 28 additions and 34 deletions
+2 -3
View File
@@ -28,6 +28,7 @@ func main() {
// entry reader shortcut (if no other arguments are supplied)
if argsCount == 2 {
cli.EntryReaderDecrypt(targetLocation, true, false)
// perform other operations on the entry (if other arguments are supplied)
} else if argsCount == 3 || (argsCount == 4 && (args[3] == "show" || args[3] == "-s")) {
if argsCount == 3 { // default to "password" if no field is specified (for copy, edit, and add)
@@ -62,8 +63,6 @@ func main() {
} else if argsCount >= 4 {
// declare entry field to perform target operation on
switch args[2] {
case "copy":
var field int // indicates which (numbered) field to copy
@@ -84,7 +83,7 @@ func main() {
}
backend.CopyArgument(targetLocation, field, args[0])
case "edit":
var field int // indicates which field to edit
var field int // indicates which (numbered) field to edit
switch args[3] {
case "password", "-pw":
field = 0