diff options
author | Masato Ikeda <masato.ikeda@gmail.com> | 2014-11-08 01:24:03 +0900 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-03-04 08:48:32 +0100 |
commit | 314dd205ca6070527a4bef791221755920858bd3 (patch) | |
tree | 31d1d00d9dbe1c0482575923e8941d10d03ae9d7 | |
parent | 93a2ba6b5f562385f29188cd363329dc2d835959 (diff) | |
download | zsh-314dd205ca6070527a4bef791221755920858bd3.tar.gz zsh-314dd205ca6070527a4bef791221755920858bd3.tar.bz2 zsh-314dd205ca6070527a4bef791221755920858bd3.zip |
knife: improve knife-solo support in completion (#3315)
Closes #1944
Closes #3315
-rw-r--r-- | plugins/knife/_knife | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/knife/_knife b/plugins/knife/_knife index 06b12a3b0..38f8ad6fa 100644 --- a/plugins/knife/_knife +++ b/plugins/knife/_knife @@ -34,7 +34,7 @@ _knife() { case $state in 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) case $words[2] in @@ -65,6 +65,9 @@ _knife() { role) compadd -Q "$@" "bulk delete" create delete edit "from file" list show ;; + solo) + compadd "$@" bootstrap clean cook init prepare + ;; upload) _arguments '*:file or directory:_files -g "*"' ;; @@ -102,6 +105,12 @@ _knife() { bag) 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))' ;; |