1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #24828 from sdurrheimer/zsh-completion-node-update-label-add-rm

Add zsh completion for 'docker node update --label-{add,rm}'
This commit is contained in:
Vincent Demeester 2016-07-20 11:47:03 +02:00 committed by GitHub
commit 5527763f8c

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