mirror of https://github.com/docker/docs.git
Add zsh completion for 'docker swarm join-token' command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com> (cherry picked from commit a04bba8b89f12480c4eaf0dda8f47442f99864ca) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
1cc85c1726
commit
5aef7cc12d
|
@ -1187,6 +1187,7 @@ __docker_swarm_commands() {
|
||||||
"init:Initialize a swarm"
|
"init:Initialize a swarm"
|
||||||
"inspect:Inspect the swarm"
|
"inspect:Inspect the swarm"
|
||||||
"join:Join a swarm as a node and/or manager"
|
"join:Join a swarm as a node and/or manager"
|
||||||
|
"join-token:Manage join tokens"
|
||||||
"leave:Leave a swarm"
|
"leave:Leave a swarm"
|
||||||
"update:Update the swarm"
|
"update:Update the swarm"
|
||||||
)
|
)
|
||||||
|
@ -1222,6 +1223,13 @@ __docker_swarm_subcommand() {
|
||||||
"($help)--token=[Token for entry into the swarm]:secret: " \
|
"($help)--token=[Token for entry into the swarm]:secret: " \
|
||||||
"($help -):host\:port: " && ret=0
|
"($help -):host\:port: " && ret=0
|
||||||
;;
|
;;
|
||||||
|
(join-token)
|
||||||
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help -q --quiet)"{-q,--quiet}"[Only display token]" \
|
||||||
|
"($help)--rotate[Rotate join token]" \
|
||||||
|
"($help -):role:(manager worker)" && ret=0
|
||||||
|
;;
|
||||||
(leave)
|
(leave)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help && ret=0
|
$opts_help && ret=0
|
||||||
|
|
Loading…
Reference in New Issue