Browse Source

Add `--parallel` to `docker build`'s options in `bash` and `zsh` completion

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 6 years ago
parent
commit
1f9b20d97b
2 changed files with 2 additions and 1 deletions
  1. 1 1
      contrib/completion/bash/docker-compose
  2. 1 0
      contrib/completion/zsh/_docker-compose

+ 1 - 1
contrib/completion/bash/docker-compose

@@ -114,7 +114,7 @@ _docker_compose_build() {
 
 	case "$cur" in
 		-*)
-			COMPREPLY=( $( compgen -W "--build-arg --compress --force-rm --help --memory --no-cache --pull" -- "$cur" ) )
+			COMPREPLY=( $( compgen -W "--build-arg --compress --force-rm --help --memory --no-cache --pull --parallel" -- "$cur" ) )
 			;;
 		*)
 			__docker_compose_complete_services --filter source=build

+ 1 - 0
contrib/completion/zsh/_docker-compose

@@ -117,6 +117,7 @@ __docker-compose_subcommand() {
                 '--no-cache[Do not use cache when building the image.]' \
                 '--pull[Always attempt to pull a newer version of the image.]' \
                 '--compress[Compress the build context using gzip.]' \
+                '--parallel[Build images in parallel.]' \
                 '*:services:__docker-compose_services_from_build' && ret=0
             ;;
         (bundle)