mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add bash completion for swarm join --availability
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
c38bb7a725
commit
f487b268f9
1 changed files with 5 additions and 1 deletions
|
@ -2963,6 +2963,10 @@ _docker_swarm_join() {
|
|||
fi
|
||||
return
|
||||
;;
|
||||
--availability)
|
||||
COMPREPLY=( $( compgen -W "active drain pause" -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
--token)
|
||||
return
|
||||
;;
|
||||
|
@ -2970,7 +2974,7 @@ _docker_swarm_join() {
|
|||
|
||||
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##*:}" ) )
|
||||
|
|
Loading…
Reference in a new issue