mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-27 20:36:29 -04:00
Add copy menu option to shell completions
This commit is contained in:
@@ -28,7 +28,7 @@ _mutnCompletions() {
|
|||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password note folder" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password note folder" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
copy )
|
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 )
|
edit )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note rename" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note rename" -- "$cur" )
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ function cliMUTN-optionCompleter {
|
|||||||
|
|
||||||
$possibleValues = @{
|
$possibleValues = @{
|
||||||
add = @('password', 'note', 'folder')
|
add = @('password', 'note', 'folder')
|
||||||
copy = @('password', 'username', 'totp', 'url', 'note')
|
copy = @('password', 'username', 'totp', 'url', 'note', 'menu')
|
||||||
edit = @('password', 'username', 'totp', 'url', 'note', 'rename')
|
edit = @('password', 'username', 'totp', 'url', 'note', 'rename')
|
||||||
gen = @('update')
|
gen = @('update')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ case ${words[-2]} in
|
|||||||
compadd {password,note,folder}
|
compadd {password,note,folder}
|
||||||
;;
|
;;
|
||||||
copy )
|
copy )
|
||||||
compadd {password,username,totp,url,note}
|
compadd {password,username,totp,url,note,menu}
|
||||||
;;
|
;;
|
||||||
edit )
|
edit )
|
||||||
compadd {password,username,totp,url,note,rename}
|
compadd {password,username,totp,url,note,rename}
|
||||||
|
|||||||
Reference in New Issue
Block a user