mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #25442 from albers/completion--env
Fix bash completion for `docker service {create,update} {-e,--env}`
This commit is contained in:
commit
b72a41b32e
1 changed files with 3 additions and 1 deletions
|
@ -1788,7 +1788,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
|
||||
;;
|
||||
|
@ -2457,6 +2458,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
|
||||
|
|
Loading…
Add table
Reference in a new issue