Skip to content

Commit

Permalink
Suppress build output that’s useful only with -q
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <[email protected]>
  • Loading branch information
dgageot committed Mar 7, 2019
1 parent 64859a9 commit 04aec19
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/skaffold/app/cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ func runBuild(out io.Writer) error {
return err
}

cmdOut := BuildOutput{Builds: bRes}
if err := buildFormatFlag.Template().Execute(out, cmdOut); err != nil {
return errors.Wrap(err, "executing template")
if quietFlag {
cmdOut := BuildOutput{Builds: bRes}
if err := buildFormatFlag.Template().Execute(out, cmdOut); err != nil {
return errors.Wrap(err, "executing template")
}
}

return nil
}

0 comments on commit 04aec19

Please sign in to comment.