mirror of https://github.com/docker/cli.git
Remove --port and update --publish for services to support syntaxes
Add support for simple and complex syntax to `--publish` through the use of `PortOpt`. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
fe9be95dec
commit
b837f7456d
|
@ -2756,7 +2756,7 @@ _docker_service_update() {
|
||||||
--host
|
--host
|
||||||
--mode
|
--mode
|
||||||
--name
|
--name
|
||||||
--port
|
--publish
|
||||||
--secret
|
--secret
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -2803,8 +2803,8 @@ _docker_service_update() {
|
||||||
--host-add
|
--host-add
|
||||||
--host-rm
|
--host-rm
|
||||||
--image
|
--image
|
||||||
--port-add
|
--publish-add
|
||||||
--port-rm
|
--publish-rm
|
||||||
--secret-add
|
--secret-add
|
||||||
--secret-rm
|
--secret-rm
|
||||||
"
|
"
|
||||||
|
|
|
@ -1797,7 +1797,7 @@ __docker_service_subcommand() {
|
||||||
"($help)*--env-file=[Read environment variables from a file]:environment file:_files" \
|
"($help)*--env-file=[Read environment variables from a file]:environment file:_files" \
|
||||||
"($help)--mode=[Service Mode]:mode:(global replicated)" \
|
"($help)--mode=[Service Mode]:mode:(global replicated)" \
|
||||||
"($help)--name=[Service name]:name: " \
|
"($help)--name=[Service name]:name: " \
|
||||||
"($help)*--port=[Publish a port]:port: " \
|
"($help)*--publish=[Publish a port]:port: " \
|
||||||
"($help -): :__docker_complete_images" \
|
"($help -): :__docker_complete_images" \
|
||||||
"($help -):command: _command_names -e" \
|
"($help -):command: _command_names -e" \
|
||||||
"($help -)*::arguments: _normal" && ret=0
|
"($help -)*::arguments: _normal" && ret=0
|
||||||
|
@ -1870,8 +1870,8 @@ __docker_service_subcommand() {
|
||||||
"($help)*--group-add=[Add additional supplementary user groups to the container]:group:_groups" \
|
"($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" \
|
"($help)*--group-rm=[Remove previously added supplementary user groups from the container]:group:_groups" \
|
||||||
"($help)--image=[Service image tag]:image:__docker_complete_repositories" \
|
"($help)--image=[Service image tag]:image:__docker_complete_repositories" \
|
||||||
"($help)*--port-add=[Add or update a port]:port: " \
|
"($help)*--publish-add=[Add or update a port]:port: " \
|
||||||
"($help)*--port-rm=[Remove a port(target-port mandatory)]:port: " \
|
"($help)*--publish-rm=[Remove a port(target-port mandatory)]:port: " \
|
||||||
"($help)--rollback[Rollback to previous specification]" \
|
"($help)--rollback[Rollback to previous specification]" \
|
||||||
"($help -)1:service:__docker_complete_services" && ret=0
|
"($help -)1:service:__docker_complete_services" && ret=0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue