mirror of https://github.com/docker/cli.git
Merge pull request #461 from jphuynh/zsh-service-rollback
Add zsh completion for `service rollback`
This commit is contained in:
commit
387cbcebb7
|
@ -1931,6 +1931,7 @@ __docker_service_commands() {
|
||||||
"logs:Fetch the logs of a service or task"
|
"logs:Fetch the logs of a service or task"
|
||||||
"ls:List services"
|
"ls:List services"
|
||||||
"rm:Remove one or more services"
|
"rm:Remove one or more services"
|
||||||
|
"rollback:Revert changes to a service's configuration"
|
||||||
"scale:Scale one or multiple replicated services"
|
"scale:Scale one or multiple replicated services"
|
||||||
"ps:List the tasks of a service"
|
"ps:List the tasks of a service"
|
||||||
"update:Update a service"
|
"update:Update a service"
|
||||||
|
@ -2037,6 +2038,13 @@ __docker_service_subcommand() {
|
||||||
$opts_help \
|
$opts_help \
|
||||||
"($help -)*:service:__docker_complete_services" && ret=0
|
"($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)
|
(scale)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
|
|
Loading…
Reference in New Issue