Browse code

Merge pull request #30939 from sdurrheimer/zsh-completion-swarm-init-update

Add zsh completion for missing 'docker swarm init|update' options
(cherry picked from commit 5d47cb901b90953e8e85bac4b66ff8fb0af04d07)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Vincent Demeester authored on 2017/02/13 05:49:00
Showing 1 changed files
... ...
@@ -2081,7 +2081,11 @@ __docker_swarm_subcommand() {
2081 2081
         (init)
2082 2082
             _arguments $(__docker_arguments) \
2083 2083
                 $opts_help \
2084
-                "($help)--advertise-addr[Advertised address]:ip\:port: " \
2084
+                "($help)--advertise-addr=[Advertised address]:ip\:port: " \
2085
+                "($help)--autolock[Enable manager autolocking]" \
2086
+                "($help)--availability=[Availability of the node]:availability:(active drain pause)" \
2087
+                "($help)--cert-expiry=[Validity period for node certificates]:duration: " \
2088
+                "($help)--dispatcher-heartbeat=[Dispatcher heartbeat period]:duration: " \
2085 2089
                 "($help)*--external-ca=[Specifications of one or more certificate signing endpoints]:endpoint: " \
2086 2090
                 "($help)--force-new-cluster[Force create a new cluster from current state]" \
2087 2091
                 "($help)--listen-addr=[Listen address]:ip\:port: " \
... ...
@@ -2113,9 +2117,10 @@ __docker_swarm_subcommand() {
2113 2113
         (update)
2114 2114
             _arguments $(__docker_arguments) \
2115 2115
                 $opts_help \
2116
+                "($help)--autolock[Enable manager autolocking]" \
2116 2117
                 "($help)--cert-expiry=[Validity period for node certificates]:duration: " \
2117
-                "($help)*--external-ca=[Specifications of one or more certificate signing endpoints]:endpoint: " \
2118 2118
                 "($help)--dispatcher-heartbeat=[Dispatcher heartbeat period]:duration: " \
2119
+                "($help)*--external-ca=[Specifications of one or more certificate signing endpoints]:endpoint: " \
2119 2120
                 "($help)--max-snapshots[Number of additional Raft snapshots to retain]" \
2120 2121
                 "($help)--snapshot-interval[Number of log entries between Raft snapshots]" \
2121 2122
                 "($help)--task-history-limit=[Task history retention limit]:limit: " && ret=0