tadayosi commented on PR #3193:
URL: https://github.com/apache/camel-k/pull/3193#issuecomment-1097582512

   > Additionally I'd wrap a function, ie, printOut(verbose bool) where you 
have the if condition, and call directly this function within the rest of the 
code. We will have a more readable code.
   
   That sounds a nice idea. I'd push it further and make wrapped printing 
functions as methods for `rootCmdOptions` so that all child commands can 
exploit them. Maybe we could have `o.printOut()`, `o.printErr()`, 
`o.printVerboseOut()`, and `o.printVerboseErr()`.


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to