Add bash completion for docker swarm unlock|unlock-key
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
929ae4a0b6
commit
07bd5152b3
1 changed files with 18 additions and 0 deletions
|
@ -2931,6 +2931,8 @@ _docker_swarm() {
|
|||
join
|
||||
join-token
|
||||
leave
|
||||
unlock
|
||||
unlock-key
|
||||
update
|
||||
"
|
||||
__docker_subcommands "$subcommands" && return
|
||||
|
@ -3035,6 +3037,22 @@ _docker_swarm_leave() {
|
|||
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() {
|
||||
case "$prev" in
|
||||
--cert-expiry|--dispatcher-heartbeat|--max-snapshots|--snapshot-interval|--task-history-limit)
|
||||
|
|
Loading…
Reference in a new issue