squakez commented on code in PR #3193:
URL: https://github.com/apache/camel-k/pull/3193#discussion_r863534964
##########
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:
What happen if `o.Verbose==false`? is it okey if we leave the `nil` or is it
going to break in the Spectrum struct?
--
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]