Skip to content

Commit c1bd4fa

Browse files
author
Anand
committed
Clipboard copy flag with password copy support
1 parent 43b1c14 commit c1bd4fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func performAction(optMap map[string]interface{}, optionMap map[string]interface
5252
"list-entry": WrapperMaxKryptStringFunc(listCurrentEntry),
5353
"find": WrapperMaxKryptStringFunc(findCurrentEntry),
5454
"remove": WrapperMaxKryptStringFunc(removeCurrentEntry),
55-
"copy": WrapperMaxKryptStringFunc(copyCurrentEntry),
55+
"clone": WrapperMaxKryptStringFunc(copyCurrentEntry),
5656
"use-db": setActiveDatabasePath,
5757
"export": exportToFile,
5858
}
@@ -63,6 +63,7 @@ func performAction(optMap map[string]interface{}, optionMap map[string]interface
6363

6464
flagsActionsMap := map[string]voidFunc{
6565
"show": setShowPasswords,
66+
"copy": setCopyPasswordToClipboard,
6667
}
6768

6869
// Flag actions - always done

0 commit comments

Comments
 (0)