Add bash completion for `docker stack config`

This adds bash completion for #3544.

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2022-04-29 19:12:06 +00:00
parent 14976338f0
commit 14d7fe4414
1 changed files with 16 additions and 0 deletions

View File

@ -4882,6 +4882,7 @@ _docker_search() {
_docker_stack() { _docker_stack() {
local subcommands=" local subcommands="
config
deploy deploy
ls ls
ps ps
@ -4910,6 +4911,21 @@ _docker_stack() {
esac esac
} }
_docker_stack_config() {
case "$prev" in
--compose-file|-c)
_filedir yml
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--compose-file -c --help --skip-interpolation" -- "$cur" ) )
;;
esac
}
_docker_stack_deploy() { _docker_stack_deploy() {
__docker_complete_stack_orchestrator_options && return __docker_complete_stack_orchestrator_options && return