Skip to content

Display a different color for installed components during a toolchain install#4875

Open
FranciscoTGouveia wants to merge 1 commit into
rust-lang:mainfrom
FranciscoTGouveia:component-installed-color
Open

Display a different color for installed components during a toolchain install#4875
FranciscoTGouveia wants to merge 1 commit into
rust-lang:mainfrom
FranciscoTGouveia:component-installed-color

Conversation

@FranciscoTGouveia
Copy link
Copy Markdown
Contributor

Closes #4870.

I decided to set a prefix for the ProgressBar since we were not using one before.
Looking at indicatif's documentation, this seemed like a reasonable way to style a specific portion of the ProgressBar.

Is there a more idiomatic approach to achieving this that I might be overlooking?

CC @djc

Copy link
Copy Markdown
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

The :.green.bold and the actual test is too far away from each other so I'm not sure if I'd like this change... To me intuitively the prefix should have been the name of the component:

Image

That said I'm not an indicatif expert either, but if there's a more straightforward way I'd choose that.

View changes since this review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustup toolchain install should use a different color for installed components

2 participants