Browse code

Add zsh completion for 'docker service update --hostname'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
(cherry picked from commit b23fbc3fbd133c9463c73a66e09f1dfbff902ffb)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>

Steve Durrheimer authored on 2016/11/26 22:13:00
Showing 1 changed files
... ...
@@ -1753,6 +1753,7 @@ __docker_service_subcommand() {
1753 1753
         "($help)--health-interval=[Time between running the check]:time: "
1754 1754
         "($help)--health-retries=[Consecutive failures needed to report unhealthy]:retries:(1 2 3 4 5)"
1755 1755
         "($help)--health-timeout=[Maximum time to allow one check to run]:time: "
1756
+        "($help)--hostname=[Service container hostname]:hostname: " \
1756 1757
         "($help)*--label=[Service labels]:label: "
1757 1758
         "($help)--limit-cpu=[Limit CPUs]:value: "
1758 1759
         "($help)--limit-memory=[Limit Memory]:value: "
... ...
@@ -1792,7 +1793,6 @@ __docker_service_subcommand() {
1792 1792
                 "($help)*--dns-option=[Set DNS options]:DNS option: " \
1793 1793
                 "($help)*--dns-search=[Set custom DNS search domains]:DNS search: " \
1794 1794
                 "($help)*--env-file=[Read environment variables from a file]:environment file:_files" \
1795
-                "($help)--hostname=[Service containers hostname]:hostname: " \
1796 1795
                 "($help)--mode=[Service Mode]:mode:(global replicated)" \
1797 1796
                 "($help)--name=[Service name]:name: " \
1798 1797
                 "($help)*--port=[Publish a port]:port: " \