Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disclose CLI stderr usage #4406

Closed
squakez opened this issue May 23, 2023 · 1 comment · Fixed by #4714
Closed

Disclose CLI stderr usage #4406

squakez opened this issue May 23, 2023 · 1 comment · Fixed by #4714
Labels
area/cli Kamel CLI area/documentation Documentation task good first issue Does not require full understanding of the codebase status/never-stale

Comments

@squakez
Copy link
Contributor

squakez commented May 23, 2023

We have not documented this anywhere, so, probably it makes sense to include in the official doc. As we make use of stderr for many CLI warning, this is automatically redirected to stdout to show immediately the result of any error to the user. However, it may be a problem when running dry run operations (ie, -o yaml). We need to show final user how to prevent the error from being logged:

 ./kamel run /tmp/Test.java -o yaml -d camel:test
Warning: dependency camel:test not found in Camel catalog
apiVersion: camel.apache.org/v1
kind: Integration

vs

$ ./kamel run /tmp/Test.java -o yaml -d camel:test 2>/dev/null
apiVersion: camel.apache.org/v1
kind: Integration
@squakez squakez added good first issue Does not require full understanding of the codebase area/documentation Documentation task area/cli Kamel CLI labels May 23, 2023
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!

squakez added a commit to squakez/camel-k that referenced this issue Sep 4, 2023
squakez added a commit that referenced this issue Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Kamel CLI area/documentation Documentation task good first issue Does not require full understanding of the codebase status/never-stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants