mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Set --progress flag default value from env if provided
Signed-off-by: Anvar Umuraliev <an.umuraliev@gmail.com>
This commit is contained in:
parent
f8dae06df8
commit
5bb46035cf
2 changed files with 11 additions and 5 deletions
|
|
@ -19,7 +19,6 @@ package progress
|
|||
import (
|
||||
"context"
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/docker/cli/cli/streams"
|
||||
|
|
@ -122,9 +121,6 @@ func NewWriter(ctx context.Context, out *streams.Out, progressTitle string) (Wri
|
|||
if !ok {
|
||||
dryRun = false
|
||||
}
|
||||
if v, ok := os.LookupEnv("COMPOSE_PROGRESS"); ok && Mode == ModeAuto {
|
||||
Mode = v
|
||||
}
|
||||
if Mode == ModeQuiet {
|
||||
return quiet{}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue