-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Suppress compile summary stats if --quiet
flag is set on compile
.
#2820
Conversation
d6ded91
to
0c2d093
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2820 +/- ##
==========================================
+ Coverage 67.69% 67.72% +0.02%
==========================================
Files 238 238
Lines 22388 22406 +18
==========================================
+ Hits 15156 15174 +18
Misses 6036 6036
Partials 1196 1196
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Do we have a dedicated integration test that assert this new behaviour?
If not I'm afraid that we should add one, especially in the case -q
and -v
is provided.
29a623a
to
924bbb8
Compare
924bbb8
to
c9122eb
Compare
Because it has a better error message than the cobra-provided one: Can't use the following flags together: --quiet, --verbose Instead of: Error: if any flags in the group [quiet verbose] are set none of the others can be; [quiet verbose] were all set
I've added the tests and they helped me to finally spot where the infamous |
Also tested on my machine (linux) works 🥳 |
Please check if the PR fulfills these requirements
See how to contribute
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)configuration.schema.json
updated if new parameters are added.What kind of change does this PR introduce?
--quiet
flag is specified and the compile has no errors.--verbose
or--quiet
flags have been provided.-q
shortcut to the--quiet
flagarduino-cli compile
arduino-cli compile -v
arduino-cli compile -q
What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change, and is titled accordingly?
Other information
Fix #2796
Fix #2510