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
parent 724c69f060
commit cdb8383d7f
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839

View file

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