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

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-07-20 09:11:16 +02:00 committed by Tibor Vass
parent ddd049d51a
commit f2e01edf57
1 changed files with 2 additions and 0 deletions

View File

@ -852,6 +852,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