bash completion for docker swarm update --cert-expiry
Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit dc2fc75d42
)
This commit is contained in:
parent
445f4f2f3e
commit
fcdd4d4a52
1 changed files with 7 additions and 1 deletions
|
@ -1639,9 +1639,15 @@ _docker_swarm_join() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_swarm_update() {
|
_docker_swarm_update() {
|
||||||
|
case "$prev" in
|
||||||
|
--auto-accept|--cert-expiry|--dispatcher-heartbeat|--secret|--task-history-limit)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--auto-accept --dispatcher-heartbeat --help --secret --task-history-limit" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--auto-accept --cert-expiry --dispatcher-heartbeat --help --secret --task-history-limit" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue