forked from ungleich-public/cdist
Add install to bash/zsh completions.
This commit is contained in:
parent
536a64e56d
commit
ac94d182b6
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ _cdist()
|
|||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
prevprev="${COMP_WORDS[COMP_CWORD-2]}"
|
||||
opts="-h --help -d --debug -v --verbose -V --version"
|
||||
cmds="banner shell config"
|
||||
cmds="banner shell config install"
|
||||
|
||||
case "${prevprev}" in
|
||||
shell)
|
||||
|
@ -35,7 +35,7 @@ _cdist()
|
|||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
config)
|
||||
config|install)
|
||||
opts="-h --help -d --debug -v --verbose -b --enable-beta \
|
||||
-c --conf-dir -f --file -i --initial-manifest -j --jobs \
|
||||
-n --dry-run -o --out-dir -p --parallel -s --sequential \
|
||||
|
|
|
@ -11,7 +11,7 @@ _cdist()
|
|||
|
||||
case $state in
|
||||
opts_cmds)
|
||||
_arguments '1:Options and commands:(banner config shell -h --help -d --debug -v --verbose -V --version)'
|
||||
_arguments '1:Options and commands:(banner config shell install -h --help -d --debug -v --verbose -V --version)'
|
||||
;;
|
||||
*)
|
||||
case $words[2] in
|
||||
|
@ -35,7 +35,7 @@ _cdist()
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
config)
|
||||
config|install)
|
||||
opts=(-h --help -d --debug -v --verbose -b --enable-beta -c --conf-dir -f --file -i --initial-manifest -j --jobs -n --dry-run -o --out-dir -p --parallel -s --sequential --remote-copy --remote-exec)
|
||||
compadd "$@" -- $opts
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue