From 8929c49c3acbf765f0a94b329c7fa8a144f6f102 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Huynh Date: Sun, 20 Aug 2017 20:30:38 +0100 Subject: [PATCH] Add zsh completion for `service rollback` Signed-off-by: Jean-Pierre Huynh --- contrib/completion/zsh/_docker | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 6e0c55b4dd..4150a85fe9 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -1931,6 +1931,7 @@ __docker_service_commands() { "logs:Fetch the logs of a service or task" "ls:List services" "rm:Remove one or more services" + "rollback:Revert changes to a service's configuration" "scale:Scale one or multiple replicated services" "ps:List the tasks of a service" "update:Update a service" @@ -2037,6 +2038,13 @@ __docker_service_subcommand() { $opts_help \ "($help -)*:service:__docker_complete_services" && ret=0 ;; + (rollback) + _arguments $(__docker_arguments) \ + $opts_help \ + "($help -d --detach)"{-d=false,--detach=false}"[Disable detached mode]" \ + "($help -q --quiet)"{-q,--quiet}"[Suppress progress output]" \ + "($help -)*:service:__docker_complete_services" && ret=0 + ;; (scale) _arguments $(__docker_arguments) \ $opts_help \