mirror of
https://github.com/docker/compose.git
synced 2025-12-16 18:24:00 +01:00
disable progress UI when build is ran with --print
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
af579ebd4b
commit
13870006fb
@ -150,6 +150,9 @@ func buildCommand(p *ProjectOptions, dockerCli command.Cli, backendOptions *Back
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runBuild(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts buildOptions, services []string) error {
|
func runBuild(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts buildOptions, services []string) error {
|
||||||
|
if opts.print {
|
||||||
|
backendOptions.Add(compose.WithEventProcessor(ui.NewQuietWriter()))
|
||||||
|
}
|
||||||
backend, err := compose.NewComposeService(dockerCli, backendOptions.Options...)
|
backend, err := compose.NewComposeService(dockerCli, backendOptions.Options...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user