Merge pull request #282 from grosendorf/feature/knife-diff-completion
added completion for knife diff
This commit is contained in:
commit
a38b49aa4c
|
@ -44,7 +44,7 @@ _knife() {
|
|||
|
||||
case $state in
|
||||
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)
|
||||
case $words[2] in
|
||||
|
@ -60,6 +60,9 @@ _knife() {
|
|||
cookbook)
|
||||
compadd -Q "$@" test list create download delete "metadata from" show "bulk delete" metadata upload
|
||||
;;
|
||||
diff)
|
||||
_arguments '*:file or directory:_files -g "*.(rb|json)"'
|
||||
;;
|
||||
environment)
|
||||
compadd -Q "$@" create delete edit "from file" list show
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue