diff --git a/api/progress/plain.go b/api/progress/plain.go index 3280bee1..75d4168d 100644 --- a/api/progress/plain.go +++ b/api/progress/plain.go @@ -37,7 +37,7 @@ func (p *plainWriter) Start(ctx context.Context) error { } func (p *plainWriter) Event(e Event) { - fmt.Println(e.ID, e.Text, e.StatusText) + fmt.Fprintln(p.out, e.ID, e.Text, e.StatusText) } func (p *plainWriter) Stop() { diff --git a/cli/cmd/compose/convert.go b/cli/cmd/compose/convert.go index e461179a..17aef240 100644 --- a/cli/cmd/compose/convert.go +++ b/cli/cmd/compose/convert.go @@ -89,6 +89,11 @@ func runConvert(ctx context.Context, opts convertOptions, services []string) err if err != nil { return err } + + if opts.quiet { + return nil + } + var out io.Writer = os.Stdout if opts.Output != "" { file, err := os.Create(opts.Output)