Merge inventory from beta branch.
This commit is contained in:
parent
2b6177c9f7
commit
e2a1519332
28 changed files with 1769 additions and 36 deletions
|
|
@ -5,8 +5,8 @@ _cdist()
|
|||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
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 install"
|
||||
opts="-h --help -q --quiet -v --verbose -V --version"
|
||||
cmds="banner config install inventory shell"
|
||||
|
||||
case "${prevprev}" in
|
||||
shell)
|
||||
|
|
@ -18,6 +18,41 @@ _cdist()
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
inventory)
|
||||
case "${prev}" in
|
||||
list)
|
||||
opts="-h --help -q --quiet -v --verbose -b --beta \
|
||||
-I --invento/y -a --all -f --file -H --host-only \
|
||||
-t --tag"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
add-host)
|
||||
opts="-h --help -q --quiet -v --verbose -b --beta \
|
||||
-I --inventory -f --file"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
del-host)
|
||||
opts="-h --help -q --quiet -v --verbose -b --beta \
|
||||
-I --inventory -a --all -f --file"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
add-tag)
|
||||
opts="-h --help -q --quiet -v --verbose -b --beta \
|
||||
-I --inventory -f --file -T --tag-file -t --taglist"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
del-tag)
|
||||
opts="-h --help -q --quiet -v --verbose -b --beta \
|
||||
-I --inventory -a --all -f --file -T --tag-file -t --taglist"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case "${prev}" in
|
||||
|
|
@ -26,23 +61,31 @@ _cdist()
|
|||
return 0
|
||||
;;
|
||||
banner)
|
||||
opts="-h --help -d --debug -v --verbose"
|
||||
opts="-h --help -q --quiet -v --verbose"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
shell)
|
||||
opts="-h --help -d --debug -v --verbose -s --shell"
|
||||
opts="-h --help -q --quiet -v --verbose -s --shell"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
config|install)
|
||||
opts="-h --help -d --debug -v --verbose -b --beta \
|
||||
-C --cache-path-pattern -c --conf-dir -f --file -i --initial-manifest -j --jobs \
|
||||
-n --dry-run -o --out-dir -p --parallel -r --remote-out-dir -s --sequential \
|
||||
--remote-copy --remote-exec"
|
||||
opts="-h --help -q --quiet -v --verbose -b --beta \
|
||||
-I --inventory -C --cache-path-pattern -c --conf-dir \
|
||||
-f --file -i --initial-manifest -A --all-tagged \
|
||||
-j --jobs -n --dry-run -o --out-dir -p --parallel \
|
||||
-r --remote-out-dir \
|
||||
-s --sequential --remote-copy --remote-exec -t --tag -a --all"
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
inventory)
|
||||
cmds="list add-host del-host add-tag del-tag"
|
||||
opts="-h --help -q --quiet -v --verbose"
|
||||
COMPREPLY=( $(compgen -W "${opts} ${cmds}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue