Add zsh completion for 'docker node update --label-{add,rm}'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
(cherry picked from commit cdb8383d7f)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Steve Durrheimer 2016-07-20 09:11:16 +02:00 committed by Tibor Vass
parent b29a9fdc4b
commit 80463d8000

View file

@ -853,6 +853,8 @@ __docker_node_subcommand() {
_arguments $(__docker_arguments) \
$opts_help \
"($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)--role=[Role of the node]:role:(manager worker)" \
"($help -)1:node:__docker_complete_nodes" && ret=0