Update zsh completion for 'docker service {create,update} {--endpoint-mode,--mode}'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
(cherry picked from commit 2e6922a6d3)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Steve Durrheimer 2016-07-15 08:29:10 +02:00 committed by Tibor Vass
parent f6dfc0394f
commit e4d263c99b

View file

@ -1067,12 +1067,11 @@ __docker_service_subcommand() {
opts_help=("(: -)--help[Print usage]")
opts_create_update=(
"($help)*--constraint=[Placement constraints]:constraint: "
"($help)--endpoint-mode=[Placement constraints]:mode:(VIP DNSRR)"
"($help)--endpoint-mode=[Placement constraints]:mode:(dnsrr vip)"
"($help)*"{-e=,--env=}"[Set environment variables]:env: "
"($help)*--label=[Service labels]:label: "
"($help)--limit-cpu=[Limit CPUs]:value: "
"($help)--limit-memory=[Limit Memory]:value: "
"($help)--mode=[Limit Memory]:mode:(global replicated)"
"($help)*--mount=[Attach a mount to the service]:mount: "
"($help)--name=[Service name]:name: "
"($help)*--network=[Network attachments]:network: "
@ -1097,6 +1096,7 @@ __docker_service_subcommand() {
_arguments $(__docker_arguments) \
$opts_help \
$opts_create_update \
"($help)--mode=[Service Mode]:mode:(global replicated)" \
"($help -): :__docker_images" \
"($help -):command: _command_names -e" \
"($help -)*::arguments: _normal" && ret=0