mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-01 18:20:08 +00:00
Merge pull request #1703 from marcparadise/mp/knife-chef-11-initial-support
initial support for chef 11 integrated knife-essentials
This commit is contained in:
commit
6daaae6347
1 changed files with 9 additions and 3 deletions
|
@ -31,7 +31,7 @@ _knife() {
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
knifecmd)
|
knifecmd)
|
||||||
compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" exec environment index node recipe role search ssh status windows $cloudproviders
|
compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff exec environment index node recipe role search ssh status upload windows $cloudproviders
|
||||||
;;
|
;;
|
||||||
knifesubcmd)
|
knifesubcmd)
|
||||||
case $words[2] in
|
case $words[2] in
|
||||||
|
@ -47,6 +47,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 "*"'
|
||||||
|
;;
|
||||||
environment)
|
environment)
|
||||||
compadd -Q "$@" list create delete edit show "from file"
|
compadd -Q "$@" list create delete edit show "from file"
|
||||||
;;
|
;;
|
||||||
|
@ -59,6 +62,9 @@ _knife() {
|
||||||
role)
|
role)
|
||||||
compadd -Q "$@" "bulk delete" create delete edit "from file" list show
|
compadd -Q "$@" "bulk delete" create delete edit "from file" list show
|
||||||
;;
|
;;
|
||||||
|
upload)
|
||||||
|
_arguments '*:file or directory:_files -g "*"'
|
||||||
|
;;
|
||||||
windows)
|
windows)
|
||||||
compadd "$@" bootstrap
|
compadd "$@" bootstrap
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue