Add zsh completion for 'docker service {create,update} --container-label{-add,-rm}'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-07-29 07:54:10 +02:00
parent faf9dac22c
commit ab95ec3dd9
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839

View file

@ -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
;;