Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
645fceb3
Commit
645fceb3
authored
10 years ago
by
Johan Svensson
Browse files
Options
Download
Email Patches
Plain Diff
Add chef-vault knife cmd support
parent
ca900216
master
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/knife/_knife
+4
-1
plugins/knife/_knife
with
4 additions
and
1 deletion
+4
-1
plugins/knife/_knife
View file @
645fceb3
...
@@ -31,7 +31,7 @@ _knife() {
...
@@ -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() {
...
@@ -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
;;
;;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help