1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Merge pull request #24994 from sdurrheimer/zsh-completion-swarm-join-token

Add zsh completion for 'docker swarm join-token' command
Upstream-commit: 642925f69b177054f7e28181e7dfd3ade58b94f3
Component: engine
This commit is contained in:
Vincent Demeester
2016-07-25 09:37:44 +02:00
committed by GitHub

View File

@@ -1186,6 +1186,7 @@ __docker_swarm_commands() {
"init:Initialize a swarm"
"inspect:Inspect the swarm"
"join:Join a swarm as a node and/or manager"
"join-token:Manage join tokens"
"leave:Leave a swarm"
"update:Update the swarm"
)
@@ -1221,6 +1222,13 @@ __docker_swarm_subcommand() {
"($help)--token=[Token for entry into the swarm]:secret: " \
"($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)
_arguments $(__docker_arguments) \
$opts_help && ret=0