-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Consider switching to anstyle
for our terminal styling and color needs
#724
Comments
I can mentor on this issue. |
Hi! Thanks for the offer to help! Would common practice be to use the |
I might be wrong but I consider The color logic we need to clean up here is more about the setup including respecting user's preferences. I have a sample boilerplate for CLIs that sets up everything related to color at https://git.sr.ht/~pksunkara/cli-clap. There are quite a few important parts such as:
|
To answer the original question, Since we must respect the color choices set in various ways (as described in But since, we have only a few places and also use (Feel free to ping me on Zulip if you want to chat) |
just a thought while I work on this - does it make sense to also refactor to use something like the so that the end application (the cli for us, and whatever binary crate uses |
Added in #737 |
Implemented in #737. |
Originally posted by @pksunkara in #721 (comment)
It seems that multiple of our dependencies already use
anstyle
, so we should consider switching to it as well.The text was updated successfully, but these errors were encountered: