Add zsh completion for 'docker {node rm,swarm leave} -f'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
b7ecc2e3c0
commit
04e7fca620
1 changed files with 3 additions and 2 deletions
|
@ -1360,7 +1360,7 @@ __docker_node_subcommand() {
|
|||
(rm|remove)
|
||||
_arguments $(__docker_arguments) \
|
||||
$opts_help \
|
||||
"($help)--force[Force remove a node from the swarm]" \
|
||||
"($help -f --force)"{-f,--force}"[Force remove a node from the swarm]" \
|
||||
"($help -)*:node:__docker_complete_pending_nodes" && ret=0
|
||||
;;
|
||||
(demote)
|
||||
|
@ -1803,7 +1803,8 @@ __docker_swarm_subcommand() {
|
|||
;;
|
||||
(leave)
|
||||
_arguments $(__docker_arguments) \
|
||||
$opts_help && ret=0
|
||||
$opts_help \
|
||||
"($help -f --force)"{-f,--force}"[Force this node to leave the swarm, ignoring warnings]" && ret=0
|
||||
;;
|
||||
(update)
|
||||
_arguments $(__docker_arguments) \
|
||||
|
|
Loading…
Add table
Reference in a new issue