Add zsh completion for 'docker service' DNS settings

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-11-14 08:13:12 +01:00 committed by Victor Vieux
parent 2c61e9c3bd
commit fd04a2db51

View file

@ -1685,6 +1685,9 @@ __docker_service_subcommand() {
$opts_help \
$opts_create_update \
"($help)*--container-label=[Container labels]:label: " \
"($help)*--dns=[Set custom DNS servers]:DNS: " \
"($help)*--dns-option=[Set DNS options]:DNS option: " \
"($help)*--dns-search=[Set custom DNS search domains]:DNS search: " \
"($help)*--env-file=[Read environment variables from a file]:environment file:_files" \
"($help)--hostname=[Service containers hostname]:hostname: " \
"($help)--mode=[Service Mode]:mode:(global replicated)" \
@ -1752,6 +1755,12 @@ __docker_service_subcommand() {
"($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)*--dns-add=[Add or update custom DNS servers]:DNS: " \
"($help)*--dns-rm=[Remove custom DNS servers]:DNS: " \
"($help)*--dns-option-add=[Add or update DNS options]:DNS option: " \
"($help)*--dns-option-rm=[Remove DNS options]:DNS option: " \
"($help)*--dns-search-add=[Add or update custom DNS search domains]:DNS search: " \
"($help)*--dns-search-rm=[Remove DNS search domains]:DNS search: " \
"($help)--force[Force update]" \
"($help)*--group-add=[Add additional supplementary user groups to the container]:group:_groups" \
"($help)*--group-rm=[Remove previously added supplementary user groups from the container]:group:_groups" \