Skip to content

Commit 7663b78

Browse files
committed
Do not print compile stats when using --show-properties in compile
1 parent 5730e2e commit 7663b78

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Diff for: cli/compile/compile.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,15 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
327327
}
328328
}
329329

330-
feedback.PrintResult(&compileResult{
331-
CompileOut: compileStdOut.String(),
332-
CompileErr: compileStdErr.String(),
333-
BuilderResult: compileRes,
334-
Success: compileError == nil,
335-
})
330+
if !showProperties {
331+
feedback.PrintResult(&compileResult{
332+
CompileOut: compileStdOut.String(),
333+
CompileErr: compileStdErr.String(),
334+
BuilderResult: compileRes,
335+
Success: compileError == nil,
336+
})
337+
}
338+
336339
if compileError != nil {
337340
feedback.Errorf(tr("Error during build: %v"), compileError)
338341

0 commit comments

Comments
 (0)