From 4b3dd70b54ab2b151f60cae239f21d5f2f9b3e11 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sun, 13 Nov 2016 14:21:13 +0100 Subject: [PATCH] Add zsh completion for 'docker service {create --port, update --port-{add,rm}}' Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 58324fa5c2..5689a19543 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -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 ;;