-
Notifications
You must be signed in to change notification settings - Fork 186
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
results: Add support for --format for default text mode #1580
results: Add support for --format for default text mode #1580
Conversation
Need to fix the output for the default scenario (when Edit: Fixed. |
Hello @marcosbc! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-06-18 14:23:05 UTC |
I cloned the sources and ran:
It ended up with an exception:
I'll look into this and possibly propose a fix. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1580 +/- ##
==========================================
+ Coverage 31.47% 32.37% +0.90%
==========================================
Files 103 118 +15
Lines 19070 19668 +598
==========================================
+ Hits 6002 6368 +366
- Misses 13068 13300 +232 ☔ View full report in Codecov by Sentry. |
b54fd83
to
a5f2300
Compare
a5f2300
to
a501ed3
Compare
In this PR, we allow the
--format
option to work forosc results
for the default text mode as well, not only--csv
.This workaround allows to resolve/workaround the following issues (by specifying the format in CSV):
Motivation
We want to be able to run
osc results --watch
using a specific format, with the same filtering options supported by default (e.g. multibuild packages, do not show excluded archs, etc.). This is not currently possible due to the limitations of the--csv
option.Context
The
osc results
command currently does not support any way of formatting the output, except when using the--csv
option. However, this option is limited as it does not support--multibuild-package
, and it shows all excluded packages by default (even if--show-excluded
is not specified).Examples