From f6aa2d75f064b9e0e8df2e121985ea813f1e6df6 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Fri, 29 Jul 2016 07:54:10 +0200 Subject: [PATCH] Add zsh completion for 'docker service {create,update} --container-label{-add,-rm}' Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index d37afa4f20..1dbe1ad016 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -1106,6 +1106,7 @@ __docker_service_subcommand() { _arguments $(__docker_arguments) \ $opts_help \ $opts_create_update \ + "($help)*--container-label=[Container labels]:label: " \ "($help)--mode=[Service Mode]:mode:(global replicated)" \ "($help -): :__docker_images" \ "($help -):command: _command_names -e" \ @@ -1166,6 +1167,8 @@ __docker_service_subcommand() { $opts_help \ $opts_create_update \ "($help)--arg=[Service command args]:arguments: _normal" \ + "($help)*--container-label-add=[Add or update container labels]:label: " \ + "($help)*--container-label-rm=[Remove a container label by its key]:label: " \ "($help)--image=[Service image tag]:image:__docker_repositories" \ "($help -)1:service:__docker_complete_services" && ret=0 ;;