fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian HomborgReindent functions to remove useless quotes9367d4ff7

master
6.3 KiB87 linesraw
1# Completions for keepassxc-cli
2
3# General options
4complete -c keepassxc-cli -l debug-info -d "Show debug info"
5complete -r -c keepassxc-cli -s k -l key-file -d "Specify a key file"
6complete -c keepassxc-cli -l no-password -d "Deactivate the password key"
7complete -r -c keepassxc-cli -s y -l yubikey -d "Specify a yubikey slot"
8complete -r -c keepassxc-cli -s q -l quiet -d "Be quiet"
9complete -c keepassxc-cli -s h -l help -d "Show help info"
10complete -c keepassxc-cli -s v -l version -d "Show version info"
11
12# Commands
13complete -f -c keepassxc-cli -n __fish_use_subcommand -a add -d "Add a new entry"
14complete -f -c keepassxc-cli -n __fish_use_subcommand -a analyze -d "Analyze password for weakness and problem"
15complete -f -c keepassxc-cli -n __fish_use_subcommand -a clip -d "Copy an entry's password to the clipboard"
16complete -f -c keepassxc-cli -n __fish_use_subcommand -a close -d "Close the currently opened database"
17complete -f -c keepassxc-cli -n __fish_use_subcommand -a create -d "Create new database"
18complete -f -c keepassxc-cli -n __fish_use_subcommand -a diceware -d "Generate a new random diceware passphrase"
19complete -f -c keepassxc-cli -n __fish_use_subcommand -a edit -d "Edit an entry"
20complete -f -c keepassxc-cli -n __fish_use_subcommand -a estimate -d "Estimate the entropy of a password"
21complete -f -c keepassxc-cli -n __fish_use_subcommand -a exit -d "Exit interactive mode"
22complete -f -c keepassxc-cli -n __fish_use_subcommand -a export -d "Export the contents to stdout"
23complete -f -c keepassxc-cli -n __fish_use_subcommand -a generate -d "Generate a new password"
24complete -f -c keepassxc-cli -n __fish_use_subcommand -a help -d "Show command help"
25complete -f -c keepassxc-cli -n __fish_use_subcommand -a import -d "Import the contents"
26complete -f -c keepassxc-cli -n __fish_use_subcommand -a locate -d "Find entries quickly"
27complete -f -c keepassxc-cli -n __fish_use_subcommand -a ls -d "List database entries"
28complete -f -c keepassxc-cli -n __fish_use_subcommand -a merge -d "Merge two databases"
29complete -f -c keepassxc-cli -n __fish_use_subcommand -a mkdir -d "Add a new group"
30complete -f -c keepassxc-cli -n __fish_use_subcommand -a mv -d "Move an entry"
31complete -f -c keepassxc-cli -n __fish_use_subcommand -a open -d "Open a database"
32complete -f -c keepassxc-cli -n __fish_use_subcommand -a quit -d "Exit interactive mode"
33complete -f -c keepassxc-cli -n __fish_use_subcommand -a rm -d "Remove an entry"
34complete -f -c keepassxc-cli -n __fish_use_subcommand -a rmdir -d "Remove a group"
35complete -f -c keepassxc-cli -n __fish_use_subcommand -a show -d "Show an entry's info"
36
37## Merge options
38complete -r -c keepassxc-cli -n "__fish_seen_subcommand_from merge" -s d -l dry-run -d "Dry run"
39complete -r -c keepassxc-cli -n "__fish_seen_subcommand_from merge" -l key-file-from -d "Key file to merge from"
40complete -c keepassxc-cli -n "__fish_seen_subcommand_from merge" -l no-password-from -d "Deactivate the password key to merge from"
41complete -c keepassxc-cli -n "__fish_seen_subcommand_from merge" -l yubikey-from -d "Yubikey slot for the second database"
42complete -c keepassxc-cli -n "__fish_seen_subcommand_from merge" -s s -l same-credentials -d "Use the same credentials for both databases"
43
44## Add and edit options
45complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from add edit" -s u -l username -d "Username for the entry"
46complete -f -c keepassxc-cli -n "__fish_seen_subcommand_from add edit" -l url -d "URL for the entry"
47complete -c keepassxc-cli -n "__fish_seen_subcommand_from add edit" -p u -l password-prompt -d "Prompt for the entry's password"
48complete -c keepassxc-cli -n "__fish_seen_subcommand_from add edit" -s g -l generate -d "Generate a password for the entry"
49
50## Edit options
51complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from edit" -s t -l title -d "Title for the entry"
52
53## Estimate options
54complete -c keepassxc-cli -n "__fish_seen_subcommand_from estimate" -s a -l advanced -d "Perform advanced analysis on the password"
55
56## Analyze options
57complete -r -c keepassxc-cli -n "__fish_seen_subcommand_from analyze" -s H -l hibp -d "Check if any passwords have been publicly leaked"
58
59## Clip options
60complete -c keepassxc-cli -n "__fish_seen_subcommand_from clip" -s t -l totp -d "Copy the current TOTP to the clipboard"
61
62## Show options
63complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from show" -s a -l attributes -d "Names of the attributes to show"
64complete -c keepassxc-cli -n "__fish_seen_subcommand_from show" -s s -l show-protected -d "Show the protected attributes in clear text"
65complete -c keepassxc-cli -n "__fish_seen_subcommand_from show" -s t -l totp -d "Show the entry's current TOTP"
66
67## Diceware options
68complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from diceware" -s W -l words -d "Word count for the diceware passphrase"
69complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from diceware" -s w -l word-list -d "Wordlist for the diceware generator"
70
71## Export options
72complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from export" -s f -l format -a "xml csv" -d "Format to use when exporting"
73
74## List options
75complete -c keepassxc-cli -n "__fish_seen_subcommand_from ls" -s R -l recursive -d "Recursively list the elements of the group"
76complete -c keepassxc-cli -n "__fish_seen_subcommand_from ls" -s f -l flatten -d "Flattens the output to single line"
77
78## Generate options
79complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s L -l length -d "Length of the generated password"
80complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s l -l lower -d "Use lowercase chars"
81complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s U -l upper -d "Use uppercase chars"
82complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s n -l numeric -d "Use numbers"
83complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s s -l special -d "Use special chars"
84complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s e -l extended -d "Use extended ASCII"
85complete -x -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -s x -l exclude -d "Exclude char set"
86complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -l exclude-similar -d "Exclude similar looking chars"
87complete -c keepassxc-cli -n "__fish_seen_subcommand_from generate" -l every-group -d "Include chars from every selected group"