mirror of https://github.com/docker/cli.git
Fix bash completion for `docker exec --env`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
78c0d50c9f
commit
04b0779de4
|
@ -1048,6 +1048,12 @@ _docker_container_exec() {
|
||||||
__docker_complete_detach-keys && return
|
__docker_complete_detach-keys && return
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
--env|-e)
|
||||||
|
# we do not append a "=" here because "-e VARNAME" is legal systax, too
|
||||||
|
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||||
|
__docker_nospace
|
||||||
|
return
|
||||||
|
;;
|
||||||
--user|-u)
|
--user|-u)
|
||||||
__docker_complete_user_group
|
__docker_complete_user_group
|
||||||
return
|
return
|
||||||
|
@ -1056,7 +1062,7 @@ _docker_container_exec() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--detach -d --detach-keys -e --env --help --interactive -i --privileged -t --tty -u --user" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--detach -d --detach-keys --env -e --help --interactive -i --privileged -t --tty -u --user" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_complete_containers_running
|
__docker_complete_containers_running
|
||||||
|
|
Loading…
Reference in New Issue