johnpoth commented on code in PR #3193:
URL: https://github.com/apache/camel-k/pull/3193#discussion_r863542752
##########
pkg/cmd/run.go:
##########
@@ -1032,15 +1032,19 @@ func writeChecksumToFile(filepath string, hash
hash.Hash) error {
return err
}
-func getSpectrumOptions(platform *v1.IntegrationPlatform, cmd *cobra.Command)
spectrum.Options {
+func (o *runCmdOptions) getSpectrumOptions(platform *v1.IntegrationPlatform,
cmd *cobra.Command) spectrum.Options {
insecure := platform.Spec.Build.Registry.Insecure
+ var stdout io.Writer
+ if o.Verbose {
+ stdout = cmd.OutOrStdout()
+ }
Review Comment:
Hi @squakez if it's false (default) then *stdout* stays nil and nothing will
be sent to the console
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]