mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
knife: improve knife-solo support in completion (#3315)
Closes #1944 Closes #3315
This commit is contained in:
parent
93a2ba6b5f
commit
314dd205ca
1 changed files with 10 additions and 1 deletions
|
@ -34,7 +34,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 vault windows $cloudproviders
|
compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff exec environment index node recipe role search solo ssh status upload vault windows $cloudproviders
|
||||||
;;
|
;;
|
||||||
knifesubcmd)
|
knifesubcmd)
|
||||||
case $words[2] in
|
case $words[2] in
|
||||||
|
@ -65,6 +65,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
|
||||||
;;
|
;;
|
||||||
|
solo)
|
||||||
|
compadd "$@" bootstrap clean cook init prepare
|
||||||
|
;;
|
||||||
upload)
|
upload)
|
||||||
_arguments '*:file or directory:_files -g "*"'
|
_arguments '*:file or directory:_files -g "*"'
|
||||||
;;
|
;;
|
||||||
|
@ -102,6 +105,12 @@ _knife() {
|
||||||
bag)
|
bag)
|
||||||
compadd -Q "$@" show edit list "from file" create delete
|
compadd -Q "$@" show edit list "from file" create delete
|
||||||
;;
|
;;
|
||||||
|
bootstrap|clean|cook|prepare)
|
||||||
|
compadd "$@" nodes/*.json(N:t:r); done
|
||||||
|
;;
|
||||||
|
init)
|
||||||
|
compadd "$@" ./*(/N:t); done
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
_arguments '3:Subsubcommands:($(_knife_options2))'
|
_arguments '3:Subsubcommands:($(_knife_options2))'
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue