diff --git a/src/_knife b/src/_knife index be55e56..7f56a4c 100644 --- a/src/_knife +++ b/src/_knife @@ -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 ;;