mirror of https://github.com/docker/cli.git
Add bash completion for `swarm join --availability`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
4a16aa2ece
commit
3b59097abd
|
@ -2963,6 +2963,10 @@ _docker_swarm_join() {
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--availability)
|
||||||
|
COMPREPLY=( $( compgen -W "active drain pause" -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--token)
|
--token)
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -2970,7 +2974,7 @@ _docker_swarm_join() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--advertise-addr --help --listen-addr --token" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--advertise-addr --availability --help --listen-addr --token" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*:)
|
*:)
|
||||||
COMPREPLY=( $( compgen -W "2377" -- "${cur##*:}" ) )
|
COMPREPLY=( $( compgen -W "2377" -- "${cur##*:}" ) )
|
||||||
|
|
Loading…
Reference in New Issue