-
Notifications
You must be signed in to change notification settings - Fork 81
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
Colored text for readability and transfer speed display #279
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #279 +/- ##
==========================================
- Coverage 37.69% 36.96% -0.73%
==========================================
Files 19 19
Lines 3221 3265 +44
==========================================
- Hits 1214 1207 -7
- Misses 2007 2058 +51 ☔ View full report in Codecov by Sentry. |
d87966d
to
4002c74
Compare
Can i rerun a failed test manually? It seems to have some network related issues. |
Can you maybe show some screenshots of the new colors? |
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.
Looking fun 🟣 🟡 🔵
A few remarks:
- This should respect https://no-color.org/ a little better: Right now the "Connecting" and "Override" text still uses color, it works fine with the progress bar.
- We should default to no color when used in a script, or when redirecting stderr/stdout.
I also wonder whether we want a separate command line flag to disable colors as well, in the same spirit as |
80cc82e
to
06faffa
Compare
I will probably want to leave this open for a few more days and gather some feedback on the color choices. While we can't exactly make everyone happy, we should at least try not to regress on readability. |
Haven't followed closely, but does this respect the CLICOLORS standard? https://bixense.com/clicolors/ |
That spec is amazing. It's apparently based entirely on the python implementation of string to boolean coercion. Anyway, I think we should be checking for |
Closes #276
Added some color to make wormhole-rs transfer information more readable! 🎨 When using it daily, I found myself missing transfer speeds the most and with that some colors would be nice to better see information right away.
Here's what I changed:
Everything important has its own color now. Makes it way nicer to use, especially when sending big files and you want to keep an eye on the speed and connection type. What do you think? Is this a nice addition?