mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add bash completion for docker build --add-host
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
a64ea37753
commit
8de3eb0486
1 changed files with 9 additions and 0 deletions
|
@ -2155,6 +2155,7 @@ _docker_image() {
|
||||||
|
|
||||||
_docker_image_build() {
|
_docker_image_build() {
|
||||||
local options_with_args="
|
local options_with_args="
|
||||||
|
--add-host
|
||||||
--build-arg
|
--build-arg
|
||||||
--cache-from
|
--cache-from
|
||||||
--cgroup-parent
|
--cgroup-parent
|
||||||
|
@ -2191,6 +2192,14 @@ _docker_image_build() {
|
||||||
local all_options="$options_with_args $boolean_options"
|
local all_options="$options_with_args $boolean_options"
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
--add-host)
|
||||||
|
case "$cur" in
|
||||||
|
*:)
|
||||||
|
__docker_complete_resolved_hostname
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
--build-arg)
|
--build-arg)
|
||||||
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
|
|
Loading…
Add table
Reference in a new issue