Set --progress flag default value from env if provided

Signed-off-by: Anvar Umuraliev <an.umuraliev@gmail.com>
This commit is contained in:
Anvar Umuraliev 2025-04-25 11:27:16 +02:00 committed by Nicolas De loof
parent f8dae06df8
commit 5bb46035cf
2 changed files with 11 additions and 5 deletions

View file

@ -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
}