1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #31382 from albers/completion-build--add-host

Add bash completion for `docker build --add-host`
This commit is contained in:
Vincent Demeester 2017-02-27 15:25:12 +01:00 committed by GitHub
commit ce79f6b644

View file

@ -2155,6 +2155,7 @@ _docker_image() {
_docker_image_build() {
local options_with_args="
--add-host
--build-arg
--cache-from
--cgroup-parent
@ -2191,6 +2192,14 @@ _docker_image_build() {
local all_options="$options_with_args $boolean_options"
case "$prev" in
--add-host)
case "$cur" in
*:)
__docker_complete_resolved_hostname
return
;;
esac
;;
--build-arg)
COMPREPLY=( $( compgen -e -- "$cur" ) )
__docker_nospace