KuthumiPepple commented on a change in pull request #3153:
URL: https://github.com/apache/camel-k/pull/3153#discussion_r839053039



##########
File path: pkg/cmd/util_dependencies.go
##########
@@ -230,37 +231,37 @@ func createCamelCatalog(ctx context.Context) 
(*camel.RuntimeCatalog, error) {
        return catalog, nil
 }
 
-func outputDependencies(dependencies []string, format string) error {
+func outputDependencies(dependencies []string, format string, cmd 
*cobra.Command) error {
        if format != "" {
-               err := printDependencies(format, dependencies)
+               err := printDependencies(format, dependencies, cmd)
                if err != nil {
                        return err
                }
        } else {
                // Print output in text form
-               fmt.Println("dependencies:")
+               fmt.Fprintln(cmd.OutOrStdout(), "dependencies:")
                for _, dep := range dependencies {
-                       fmt.Printf("%v\n", dep)
+                       fmt.Fprintf(cmd.OutOrStdout(), "%v\n", dep)

Review comment:
       done




-- 
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]


Reply via email to