summaryrefslogtreecommitdiff
path: root/plugins/knife
diff options
context:
space:
mode:
authorJohan Svensson <jsv@one.com>2014-03-18 10:52:25 +0100
committerJohan Svensson <jsv@one.com>2014-03-18 10:52:25 +0100
commit645fceb38b091e1dd5c9804a444730a9837bae07 (patch)
treeb837a58c2d285c5e7e3e5fe75cea6961ead4a019 /plugins/knife
parentca900216302aa1138c793971cf877b5d4e88fb06 (diff)
downloadzsh-645fceb38b091e1dd5c9804a444730a9837bae07.tar.gz
zsh-645fceb38b091e1dd5c9804a444730a9837bae07.tar.bz2
zsh-645fceb38b091e1dd5c9804a444730a9837bae07.zip
Add chef-vault knife cmd support
Diffstat (limited to 'plugins/knife')
-rw-r--r--plugins/knife/_knife5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/knife/_knife b/plugins/knife/_knife
index b44283f78..163149267 100644
--- a/plugins/knife/_knife
+++ b/plugins/knife/_knife
@@ -31,7 +31,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 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)
case $words[2] in
@@ -65,6 +65,9 @@ _knife() {
upload)
_arguments '*:file or directory:_files -g "*"'
;;
+ vault)
+ compadd -Q "$@" create decrypt delete edit remove "rotate all keys" "rotate keys" show update
+ ;;
windows)
compadd "$@" bootstrap
;;