mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fix bash completion for docker service {create,update} {-e,--env}
Signed-off-by: Harald Albers <github@albersweb.de> (cherry picked from commit 197f23da497d3d82f30beb6d920211f6d2055fa3) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
committed by
Tibor Vass
parent
aaadc511d8
commit
98bbe72549
@@ -1774,7 +1774,8 @@ _docker_service_update() {
|
||||
return
|
||||
;;
|
||||
--env|-e)
|
||||
COMPREPLY=( $( compgen -e -S = -- "$cur" ) )
|
||||
# we do not append a "=" here because "-e VARNAME" is legal systax, too
|
||||
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||
__docker_nospace
|
||||
return
|
||||
;;
|
||||
@@ -2431,6 +2432,7 @@ _docker_run() {
|
||||
return
|
||||
;;
|
||||
--env|-e)
|
||||
# we do not append a "=" here because "-e VARNAME" is legal systax, too
|
||||
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||
__docker_nospace
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user