Browse code

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

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>

Steve Durrheimer authored on 2016/07/15 15:29:10
Showing 1 changed files
... ...
@@ -1066,12 +1066,11 @@ __docker_service_subcommand() {
1066 1066
     opts_help=("(: -)--help[Print usage]")
1067 1067
     opts_create_update=(
1068 1068
         "($help)*--constraint=[Placement constraints]:constraint: "
1069
-        "($help)--endpoint-mode=[Placement constraints]:mode:(VIP DNSRR)"
1069
+        "($help)--endpoint-mode=[Placement constraints]:mode:(dnsrr vip)"
1070 1070
         "($help)*"{-e=,--env=}"[Set environment variables]:env: "
1071 1071
         "($help)*--label=[Service labels]:label: "
1072 1072
         "($help)--limit-cpu=[Limit CPUs]:value: "
1073 1073
         "($help)--limit-memory=[Limit Memory]:value: "
1074
-        "($help)--mode=[Limit Memory]:mode:(global replicated)"
1075 1074
         "($help)*--mount=[Attach a mount to the service]:mount: "
1076 1075
         "($help)--name=[Service name]:name: "
1077 1076
         "($help)*--network=[Network attachments]:network: "
... ...
@@ -1095,6 +1094,7 @@ __docker_service_subcommand() {
1095 1095
             _arguments $(__docker_arguments) \
1096 1096
                 $opts_help \
1097 1097
                 $opts_create_update \
1098
+                "($help)--mode=[Service Mode]:mode:(global replicated)" \
1098 1099
                 "($help -): :__docker_images" \
1099 1100
                 "($help -):command: _command_names -e" \
1100 1101
                 "($help -)*::arguments: _normal" && ret=0