Add copy menu option to shell completions

This commit is contained in:
2025-11-10 19:35:40 -05:00
parent 107a6f4f12
commit fc1e3b11fc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ _mutnCompletions() {
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password note folder" -- "$cur" )
;;
copy )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note menu" -- "$cur" )
;;
edit )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note rename" -- "$cur" )
+1 -1
View File
@@ -86,7 +86,7 @@ function cliMUTN-optionCompleter {
$possibleValues = @{
add = @('password', 'note', 'folder')
copy = @('password', 'username', 'totp', 'url', 'note')
copy = @('password', 'username', 'totp', 'url', 'note', 'menu')
edit = @('password', 'username', 'totp', 'url', 'note', 'rename')
gen = @('update')
}
+1 -1
View File
@@ -20,7 +20,7 @@ case ${words[-2]} in
compadd {password,note,folder}
;;
copy )
compadd {password,username,totp,url,note}
compadd {password,username,totp,url,note,menu}
;;
edit )
compadd {password,username,totp,url,note,rename}