added completion for knife diff

This commit is contained in:
Gabriel Rosendorf 2015-01-06 09:30:12 -05:00
parent 9f0a0e907a
commit 9d118e8e3b
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
;; ;;