mirror of https://github.com/docker/cli.git
Add bash completion for `service create|update --rollback-*`
Also remove wrong completion for `docker service create --rollback` Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
33ae729456
commit
0ada299b10
|
@ -2987,7 +2987,11 @@ _docker_service_update_and_create() {
|
||||||
--restart-delay
|
--restart-delay
|
||||||
--restart-max-attempts
|
--restart-max-attempts
|
||||||
--restart-window
|
--restart-window
|
||||||
--rollback
|
--rollback-delay
|
||||||
|
--rollback-failure-action
|
||||||
|
--rollback-max-failure-ratio
|
||||||
|
--rollback-monitor
|
||||||
|
--rollback-parallelism
|
||||||
--stop-grace-period
|
--stop-grace-period
|
||||||
--update-delay
|
--update-delay
|
||||||
--update-failure-action
|
--update-failure-action
|
||||||
|
@ -3067,6 +3071,7 @@ _docker_service_update_and_create() {
|
||||||
--image
|
--image
|
||||||
--publish-add
|
--publish-add
|
||||||
--publish-rm
|
--publish-rm
|
||||||
|
--rollback
|
||||||
--secret-add
|
--secret-add
|
||||||
--secret-rm
|
--secret-rm
|
||||||
"
|
"
|
||||||
|
@ -3122,6 +3127,10 @@ _docker_service_update_and_create() {
|
||||||
COMPREPLY=( $( compgen -W "any none on-failure" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "any none on-failure" -- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--rollback-failure-action)
|
||||||
|
COMPREPLY=( $( compgen -W "continue pause" -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--user|-u)
|
--user|-u)
|
||||||
__docker_complete_user_group
|
__docker_complete_user_group
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue