Merge pull request #282 from grosendorf/feature/knife-diff-completion

added completion for knife diff
This commit is contained in:
nicoulaj 2016-02-04 21:31:10 +01:00
commit a38b49aa4c
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,7 @@ _knife() {
case $state in case $state in
knifecmd) knifecmd)
compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" environment user exec index node recipe role search ssh status windows $cloudproviders compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff environment user exec index node recipe role search ssh status windows $cloudproviders
;; ;;
knifesubcmd) knifesubcmd)
case $words[2] in case $words[2] in
@ -60,6 +60,9 @@ _knife() {
cookbook) cookbook)
compadd -Q "$@" test list create download delete "metadata from" show "bulk delete" metadata upload compadd -Q "$@" test list create download delete "metadata from" show "bulk delete" metadata upload
;; ;;
diff)
_arguments '*:file or directory:_files -g "*.(rb|json)"'
;;
environment) environment)
compadd -Q "$@" create delete edit "from file" list show compadd -Q "$@" create delete edit "from file" list show
;; ;;