Explorar o código

Merge pull request #2675 from sdurrheimer/zsh-completion-up-abort-on-container-exit

Add zsh completion for 'docker-compose up --abort-on-container-exit'
Aanand Prasad %!s(int64=9) %!d(string=hai) anos
pai
achega
413cdbcb81
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      contrib/completion/zsh/_docker-compose

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

@@ -304,12 +304,13 @@ __docker-compose_subcommand() {
         (up)
             _arguments \
                 $opts_help \
-                '-d[Detached mode: Run containers in the background, print new container names.]' \
+                '(--abort-on-container-exit)-d[Detached mode: Run containers in the background, print new container names.]' \
                 '--no-color[Produce monochrome output.]' \
                 "--no-deps[Don't start linked services.]" \
                 "--force-recreate[Recreate containers even if their configuration and image haven't changed. Incompatible with --no-recreate.]" \
                 "--no-recreate[If containers already exist, don't recreate them.]" \
                 "--no-build[Don't build an image, even if it's missing]" \
+                "(-d)--abort-on-container-exit[Stops all containers if any container was stopped. Incompatible with -d.]" \
                 '(-t --timeout)'{-t,--timeout}"[Specify a shutdown timeout in seconds. (default: 10)]:seconds: " \
                 '*:services:__docker-compose_services_all' && ret=0
             ;;