mirror of https://github.com/docker/cli.git
Add zsh completion for 'docker service {create --port, update --port-{add,rm}}'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
fd70b3c283
commit
4b3dd70b54
|
@ -1689,6 +1689,7 @@ __docker_service_subcommand() {
|
|||
"($help)--hostname=[Service containers hostname]:hostname: " \
|
||||
"($help)--mode=[Service Mode]:mode:(global replicated)" \
|
||||
"($help)--name=[Service name]:name: " \
|
||||
"($help)*--port=[Publish a port]:port: " \
|
||||
"($help -): :__docker_complete_images" \
|
||||
"($help -):command: _command_names -e" \
|
||||
"($help -)*::arguments: _normal" && ret=0
|
||||
|
@ -1755,6 +1756,8 @@ __docker_service_subcommand() {
|
|||
"($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)--image=[Service image tag]:image:__docker_complete_repositories" \
|
||||
"($help)*--port-add=[Add or update a port]:port: " \
|
||||
"($help)*--port-rm=[Remove a port(target-port mandatory)]:port: " \
|
||||
"($help)--rollback[Rollback to previous specification]" \
|
||||
"($help -)1:service:__docker_complete_services" && ret=0
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue