From f2e01edf5798b41c9a92422f6b2d87d15390bcd6 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Wed, 20 Jul 2016 09:11:16 +0200 Subject: [PATCH] Add zsh completion for 'docker node update --label-{add,rm}' Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 7f6081ff2d..5cc16bd528 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -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