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
338565805c
commit
5a9425c417
1 changed files with 10 additions and 1 deletions
|
@ -2987,7 +2987,11 @@ _docker_service_update_and_create() {
|
|||
--restart-delay
|
||||
--restart-max-attempts
|
||||
--restart-window
|
||||
--rollback
|
||||
--rollback-delay
|
||||
--rollback-failure-action
|
||||
--rollback-max-failure-ratio
|
||||
--rollback-monitor
|
||||
--rollback-parallelism
|
||||
--stop-grace-period
|
||||
--update-delay
|
||||
--update-failure-action
|
||||
|
@ -3067,6 +3071,7 @@ _docker_service_update_and_create() {
|
|||
--image
|
||||
--publish-add
|
||||
--publish-rm
|
||||
--rollback
|
||||
--secret-add
|
||||
--secret-rm
|
||||
"
|
||||
|
@ -3122,6 +3127,10 @@ _docker_service_update_and_create() {
|
|||
COMPREPLY=( $( compgen -W "any none on-failure" -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
--rollback-failure-action)
|
||||
COMPREPLY=( $( compgen -W "continue pause" -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
--user|-u)
|
||||
__docker_complete_user_group
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue