mirror of https://github.com/docker/cli.git
Add zsh completion for 'docker node update --label-{add,rm}'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
ddd049d51a
commit
f2e01edf57
|
@ -852,6 +852,8 @@ __docker_node_subcommand() {
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
"($help)--availability=[Availability of the node]:availability:(active pause drain)" \
|
"($help)--availability=[Availability of the node]:availability:(active pause drain)" \
|
||||||
|
"($help)*--label-add=[Add or update a node label]:key=value: " \
|
||||||
|
"($help)*--label-rm=[Remove a node label if exists]:label: " \
|
||||||
"($help)--membership=[Membership of the node]:membership:(accepted rejected)" \
|
"($help)--membership=[Membership of the node]:membership:(accepted rejected)" \
|
||||||
"($help)--role=[Role of the node]:role:(manager worker)" \
|
"($help)--role=[Role of the node]:role:(manager worker)" \
|
||||||
"($help -)1:node:__docker_complete_nodes" && ret=0
|
"($help -)1:node:__docker_complete_nodes" && ret=0
|
||||||
|
|
Loading…
Reference in New Issue