mirror of https://github.com/docker/cli.git
Make bash completion for `docker stack deploy --bundle-file` experimental
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
b837f7456d
commit
ea5be8f75f
|
@ -3514,8 +3514,10 @@ _docker_stack() {
|
||||||
_docker_stack_deploy() {
|
_docker_stack_deploy() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--bundle-file)
|
--bundle-file)
|
||||||
|
if __docker_is_experimental ; then
|
||||||
_filedir dab
|
_filedir dab
|
||||||
return
|
return
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
--compose-file|-c)
|
--compose-file|-c)
|
||||||
_filedir yml
|
_filedir yml
|
||||||
|
@ -3525,7 +3527,9 @@ _docker_stack_deploy() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--bundle-file --compose-file -c --help --with-registry-auth" -- "$cur" ) )
|
local options="--compose-file -c --help --with-registry-auth"
|
||||||
|
__docker_is_experimental && options+=" --bundle-file"
|
||||||
|
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue