Browse Source

Add install to bash/zsh completions.

feature/trigger
Darko Poljak 6 years ago
parent
commit
ac94d182b6
  1. 4
      completions/bash/cdist-completion.bash
  2. 4
      completions/zsh/_cdist

4
completions/bash/cdist-completion.bash

@ -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 \

4
completions/zsh/_cdist

@ -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…
Cancel
Save