Add knife solo plugin command autocompletion to knife

This commit is contained in:
dfang 2013-06-28 17:50:22 +08:00
commit 0eea37b00d

View file

@ -31,7 +31,7 @@ _knife() {
case $state in case $state in
knifecmd) knifecmd)
compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff exec environment index node recipe role search ssh status upload windows $cloudproviders compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff exec environment index node recipe role search solo ssh status windows $cloudproviders
;; ;;
knifesubcmd) knifesubcmd)
case $words[2] in case $words[2] in
@ -56,6 +56,9 @@ _knife() {
node) node)
compadd -Q "$@" "from file" create show edit delete list run_list "bulk delete" compadd -Q "$@" "from file" create show edit delete list run_list "bulk delete"
;; ;;
solo)
compadd -Q "$@" init prepare cook bootstrap clean
;;
recipe) recipe)
compadd "$@" list compadd "$@" list
;; ;;