mirror of https://github.com/docker/cli.git
bash completion for `docker swarm join-token`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
2f9e9bcbaa
commit
a35ae076b4
|
@ -1815,6 +1815,7 @@ _docker_swarm() {
|
||||||
init
|
init
|
||||||
inspect
|
inspect
|
||||||
join
|
join
|
||||||
|
join-token
|
||||||
leave
|
leave
|
||||||
update
|
update
|
||||||
"
|
"
|
||||||
|
@ -1884,6 +1885,20 @@ _docker_swarm_join() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_docker_swarm_join-token() {
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help --quiet -q --rotate" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
local counter=$( __docker_pos_first_nonflag )
|
||||||
|
if [ $cword -eq $counter ]; then
|
||||||
|
COMPREPLY=( $( compgen -W "manager worker" -- "$cur" ) )
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_docker_swarm_leave() {
|
_docker_swarm_leave() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
|
Loading…
Reference in New Issue