Skip to content

Commit 2e41d08

Browse files
committed
fix: review comment - set silent to false only when debug is enabled.
1 parent 61e9850 commit 2e41d08

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/init.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,11 +787,15 @@ func (cmd *InitCmd) render(f factory.Factory, config *latest.Config) (string, er
787787
return "", errors.Wrap(err, "temp render.yaml")
788788
}
789789

790+
silent := true
791+
if cmd.Debug {
792+
silent = false
793+
}
790794
// Use the render command to render it.
791795
writer := &bytes.Buffer{}
792796
renderCmd := &RunPipelineCmd{
793797
GlobalFlags: &flags.GlobalFlags{
794-
Silent: false,
798+
Silent: silent,
795799
ConfigPath: renderPath,
796800
},
797801
Pipeline: "deploy",

0 commit comments

Comments
 (0)