Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
314dd205
Commit
314dd205
authored
Nov 07, 2014
by
Masato Ikeda
Committed by
Marc Cornellà
Mar 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
knife: improve knife-solo support in completion (#3315)
Closes #1944 Closes #3315
parent
93a2ba6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
_knife
plugins/knife/_knife
+10
-1
No files found.
plugins/knife/_knife
View file @
314dd205
...
...
@@ -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 s
olo s
sh 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))'
;;
...
...
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