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
724c69f060
commit
cdb8383d7f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue