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:
parent
b29a9fdc4b
commit
80463d8000
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue