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:
Родитель
14976338f0
Коммит
14d7fe4414
|
@ -4882,6 +4882,7 @@ _docker_search() {
|
|||
|
||||
_docker_stack() {
|
||||
local subcommands="
|
||||
config
|
||||
deploy
|
||||
ls
|
||||
ps
|
||||
|
@ -4910,6 +4911,21 @@ _docker_stack() {
|
|||
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_complete_stack_orchestrator_options && return
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче