Advertise TOTP support in printInfo.go, add to shell completions

This commit is contained in:
2024-03-18 18:38:42 -04:00
parent 3171d1c1cd
commit ca14abbae9
4 changed files with 5 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 url note" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note" -- "$cur" )
;;
edit )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note rename" -- "$cur" )
+1 -1
View File
@@ -20,7 +20,7 @@ function cliMUTNOptionCompleter {
$possibleValues = @{
add = @('password', 'note', 'folder')
copy = @('password', 'username', 'url', 'note')
copy = @('password', 'username', 'totp', 'url', 'note')
edit = @('password', 'username', '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,url,note}
compadd {password,username,totp,url,note}
;;
edit )
compadd {password,username,url,note,rename}
+2
View File
@@ -35,6 +35,7 @@ This program comes with absolutely no warranty; type "mutn version" for details.
copy:
password|-pw|<blank> Copy the password of an entry to your clipboard
username|-u Copy the username of an entry to your clipboard
totp|-t Copy the TOTP code of an entry to your clipboard
url|-l Copy the url of an entry to your clipboard
note|-n Copy the note of an entry to your clipboard
edit:
@@ -88,6 +89,7 @@ func HelpCopy() {
copy:
password|-pw|<blank> Copy the password in an entry to your clipboard
username|-u Copy the username in an entry to your clipboard
totp|-t Copy the TOTP code of an entry to your clipboard
url|-l Copy the url in an entry to your clipboard
note|-n Copy the first note line in an entry to your clipboard` + "\n\n")
os.Exit(0)