Skip to content

Conversation

@hugovk
Copy link
Contributor

@hugovk hugovk commented Nov 8, 2025

Summary

The output of uv --help uses green and cyan to improve readability. But ruff and ty do not:

image

Let's add similar styling to ruff and ty. This is the main bit in uv:

https://github.com/astral-sh/uv/blob/85c5d32284522eb958d9cfc10ff62f0956eab113/crates/uv-cli/src/lib.rs#L88-L93

Test Plan

Compare and check they have similarly styled output:

./target/debug/ruff --help
./target/debug/ty --help
uv --help
image

Also run with NO_COLOR=1 to confirm there's no colour or bold text:

NO_COLOR=1 ./target/debug/ruff --help
NO_COLOR=1 ./target/debug/ty --help
NO_COLOR=1 uv --help
image

@MichaReiser MichaReiser added the cli Related to the command-line interface label Nov 8, 2025
@MichaReiser
Copy link
Member

Thank you, this is great

@MichaReiser MichaReiser merged commit 09e6af1 into astral-sh:main Nov 8, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the command-line interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants