Skip to content
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

Add some text decoration to toolchain CLI #4882

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jul 8, 2024

Summary

Attempts to make the CLI output a little more consistent with the pip interface. I opted to make the Python versions, requests, and filenames blue, and the keys green, but open to opinions on that. (We use blue for filenames elsewhere.)

Closes #4813.
Closes #4814.

Screenshot 2024-07-07 at 9 18 48 PM

@charliermarsh charliermarsh added cli Related to the command line interface preview Experimental behavior labels Jul 8, 2024
installation.key()
"Found existing installation for {}: {}",
request.cyan(),
installation.key().green(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also tried bold for these but it felt too loud.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe yellow is more subtle.

@charliermarsh
Copy link
Member Author

Other inspiration here could be Cargo which bolds + colors the operation rather than the argument:

Screenshot 2024-07-07 at 9 44 31 PM

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge as an incremental improvement and we can futz more later?

@charliermarsh charliermarsh merged commit 2d651fe into main Jul 8, 2024
49 checks passed
@charliermarsh charliermarsh deleted the charlie/toolchain-cli branch July 8, 2024 14:03
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 preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv toolchain CLI should use consistent colors uv toolchain uninstall repeats "No installations" message
2 participants