-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extend formatting options to listen subcommand #539
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, thanks
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #539 +/- ##
==========================================
+ Coverage 92.48% 92.66% +0.17%
==========================================
Files 35 35
Lines 1637 1663 +26
==========================================
+ Hits 1514 1541 +27
+ Misses 123 122 -1 ☔ View full report in Codecov by Sentry. |
8c688a0
to
022d6e3
Compare
a1f65b9
to
c49b1b9
Compare
aa5a0eb
to
6e15a10
Compare
Listen streams a mix of WorkerEvent, ProgressEvent and DataEvent instances for anything that the server is doing. This extends the type handling in the format to each of these types to display the relevant level of information for each. Informational messages are changed to be printed to stderr so that the main stdout output can be piped to an external application (eg jq for json mode).
f'{Foo.A}' uses str.__format__ in 3.10 but enum.__format__ in 3.11+. Use the name attribute to work with the string directly to ensure the same behaviour in both environments.
b1062e2
to
0192ef0
Compare
And cover the missing two lines to get to coverage threshold
Listen streams a mix of WorkerEvent, ProgressEvent and DataEvent
instances for anything that the server is doing. This extends the type
handling in the format to each of these types to display the relevant
level of information for each.
Informational messages are changed to be printed to stderr so that the
main stdout output can be piped to an external application (eg jq for
json mode).