Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
dgageot committed Mar 6, 2019

Unverified

This user has not yet uploaded their public signing key.
1 parent 53701b0 commit 0fc8302
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
@@ -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 0fc8302

Please sign in to comment.