-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: Properly silence cobra errors #668
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Benchmark ResultsSummary
✅ See Better Results...
❌ See Worse Results...
✨ See Unchanged Results...
🐋 See Full Results...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a commit that also silences cobra default printing of usage, also as per design of PR 649. This PR makes me realize that there is a class of errors for which the CLI should print usage but is not currently printed, i.e. errors with flags... A subsequent PR should introduce parsing of the errors given by execution of root command to handle this . |
3336d18
to
223a4ab
Compare
Codecov Report
@@ Coverage Diff @@
## develop #668 +/- ##
========================================
Coverage 61.68% 61.68%
========================================
Files 123 123
Lines 14925 14925
========================================
Hits 9206 9206
Misses 4859 4859
Partials 860 860
|
Relevant issue(s)
Resolves #667
Description
Fixes the issue.
Tasks
How has this been tested?
Manual
Specify the platform(s) on which this was tested: