mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Merge pull request #2627 from loxley/add_knife_vault_cmd
Add chef-vault knife cmd support
This commit is contained in:
commit
184e93cb05
1 changed files with 4 additions and 1 deletions
|
@ -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 ssh status upload vault windows $cloudproviders
|
||||||
;;
|
;;
|
||||||
knifesubcmd)
|
knifesubcmd)
|
||||||
case $words[2] in
|
case $words[2] in
|
||||||
|
@ -65,6 +65,9 @@ _knife() {
|
||||||
upload)
|
upload)
|
||||||
_arguments '*:file or directory:_files -g "*"'
|
_arguments '*:file or directory:_files -g "*"'
|
||||||
;;
|
;;
|
||||||
|
vault)
|
||||||
|
compadd -Q "$@" create decrypt delete edit remove "rotate all keys" "rotate keys" show update
|
||||||
|
;;
|
||||||
windows)
|
windows)
|
||||||
compadd "$@" bootstrap
|
compadd "$@" bootstrap
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue