mirror of https://github.com/docker/cli.git
Add bash completion for `docker swarm unlock|unlock-key`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
a91e0c5b33
commit
24bf7b830a
|
@ -2944,6 +2944,8 @@ _docker_swarm() {
|
||||||
join
|
join
|
||||||
join-token
|
join-token
|
||||||
leave
|
leave
|
||||||
|
unlock
|
||||||
|
unlock-key
|
||||||
update
|
update
|
||||||
"
|
"
|
||||||
__docker_subcommands "$subcommands" && return
|
__docker_subcommands "$subcommands" && return
|
||||||
|
@ -3055,6 +3057,22 @@ _docker_swarm_leave() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_docker_swarm_unlock() {
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
_docker_swarm_unlock-key() {
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help --quiet -q --rotate" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_docker_swarm_update() {
|
_docker_swarm_update() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--cert-expiry|--dispatcher-heartbeat|--external-ca|--max-snapshots|--snapshot-interval|--task-history-limit)
|
--cert-expiry|--dispatcher-heartbeat|--external-ca|--max-snapshots|--snapshot-interval|--task-history-limit)
|
||||||
|
|
Loading…
Reference in New Issue