mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-04 08:07:16 -04:00
Advertise TOTP support in printInfo.go, add 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 url note" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username totp url note" -- "$cur" )
|
||||||
;;
|
;;
|
||||||
edit )
|
edit )
|
||||||
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note rename" -- "$cur" )
|
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note rename" -- "$cur" )
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ function cliMUTNOptionCompleter {
|
|||||||
|
|
||||||
$possibleValues = @{
|
$possibleValues = @{
|
||||||
add = @('password', 'note', 'folder')
|
add = @('password', 'note', 'folder')
|
||||||
copy = @('password', 'username', 'url', 'note')
|
copy = @('password', 'username', 'totp', 'url', 'note')
|
||||||
edit = @('password', 'username', 'url', 'note', 'rename')
|
edit = @('password', 'username', '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,url,note}
|
compadd {password,username,totp,url,note}
|
||||||
;;
|
;;
|
||||||
edit )
|
edit )
|
||||||
compadd {password,username,url,note,rename}
|
compadd {password,username,url,note,rename}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ This program comes with absolutely no warranty; type "mutn version" for details.
|
|||||||
copy:
|
copy:
|
||||||
password|-pw|<blank> Copy the password of an entry to your clipboard
|
password|-pw|<blank> Copy the password of an entry to your clipboard
|
||||||
username|-u Copy the username 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
|
url|-l Copy the url of an entry to your clipboard
|
||||||
note|-n Copy the note of an entry to your clipboard
|
note|-n Copy the note of an entry to your clipboard
|
||||||
edit:
|
edit:
|
||||||
@@ -88,6 +89,7 @@ func HelpCopy() {
|
|||||||
copy:
|
copy:
|
||||||
password|-pw|<blank> Copy the password in an entry to your clipboard
|
password|-pw|<blank> Copy the password in an entry to your clipboard
|
||||||
username|-u Copy the username 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
|
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")
|
note|-n Copy the first note line in an entry to your clipboard` + "\n\n")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user