You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/04/13 14:00:08 UTC
[camel-k] branch main updated: fix(cli): modeline warn output to stderr
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new bede42787 fix(cli): modeline warn output to stderr
bede42787 is described below
commit bede42787c0e51b4840cc2d1cf61c686c78231e6
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Tue Apr 12 15:00:37 2022 +0200
fix(cli): modeline warn output to stderr
Closes #3177
---
pkg/cmd/modeline.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pkg/cmd/modeline.go b/pkg/cmd/modeline.go
index 5f16e1819..38b135a58 100644
--- a/pkg/cmd/modeline.go
+++ b/pkg/cmd/modeline.go
@@ -76,12 +76,12 @@ func NewKamelWithModelineCommand(ctx context.Context, osArgs []string) (*cobra.C
}
if len(originalFlags) != len(flags) {
// Give a feedback about the actual command that is run
- fmt.Fprintln(rootCmd.OutOrStdout(), "Modeline options have been loaded from source files")
- fmt.Fprint(rootCmd.OutOrStdout(), "Full command: kamel ")
+ fmt.Fprintln(rootCmd.ErrOrStderr(), "Modeline options have been loaded from source files")
+ fmt.Fprint(rootCmd.ErrOrStderr(), "Full command: kamel ")
for _, a := range flags {
- fmt.Fprintf(rootCmd.OutOrStdout(), "%s ", a)
+ fmt.Fprintf(rootCmd.ErrOrStderr(), "%s ", a)
}
- fmt.Fprintln(rootCmd.OutOrStdout())
+ fmt.Fprintln(rootCmd.ErrOrStderr())
}
return rootCmd, flags, nil
}