Push first version

This commit is contained in:
kilyabin
2026-01-27 22:37:30 +04:00
parent f06c4143e9
commit 389176a342
9 changed files with 231 additions and 0 deletions

7
completions/genpass.bash Normal file
View File

@@ -0,0 +1,7 @@
_genpass() {
local cur opts
cur="${COMP_WORDS[COMP_CWORD]}"
opts="--help -l --length -n --count --lower --upper --digits --symbols --symbol-set --no-ensure"
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
}
complete -F _genpass genpass

8
completions/genpass.fish Normal file
View File

@@ -0,0 +1,8 @@
complete -c genpass -l length -s l -d "Password length"
complete -c genpass -l count -s n -d "Number of passwords"
complete -c genpass -l lower -d "Lowercase letters"
complete -c genpass -l upper -d "Uppercase letters"
complete -c genpass -l digits -d "Digits"
complete -c genpass -l symbols -d "Symbols"
complete -c genpass -l symbol-set -d "Custom symbol set"
complete -c genpass -l no-ensure -d "Disable character guarantees"

10
completions/genpass.zsh Normal file
View File

@@ -0,0 +1,10 @@
#compdef genpass
_arguments \
'--length[-l]:password length:' \
'--count[-n]:number of passwords:' \
'--lower[use lowercase letters]' \
'--upper[use uppercase letters]' \
'--digits[use digits]' \
'--symbols[use symbols]' \
'--symbol-set[custom symbol set]' \
'--no-ensure[do not enforce each type]'