-
Notifications
You must be signed in to change notification settings - Fork 984
fix: Use HEADER styling in 'rustup show' #4556
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
Conversation
…odes I had originally removed `impl Write for ColorableTerminal` in rust-lang#4520 and missed this when I added it back in.
Treating top-level key-value pairs as a `HEADER` matches `cargo info`s behavior.
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.
Thanks! I think that does look better than before...
PS: I'm not completely sure if people are really parsing the output or not, but probably this is less of a problem from our experience in the v1.28 breakage, especially because it's just a change in the colors... Let's see :)
|
If they are parsing, then it isn't a tty and they won't have colors unless the someone has set The idea I've been toying with to try to improve scanability that would affect parsers is to see if we can align on the |
This changes the parenthetical from `bold` to `CONTEXT` to match what was done in rust-lang#4556. This does not remove the bolding of the item itself. We could do that. I figured its fine for now since there is a clearer meaning with `installed` than when you can have `active` and `default` on separate items.
`rustup show` and `rustup toolchain list` have similar lists but the latter was unstyled. This updates it to be styled to match `rustup show` as of rust-lang#4556. Maybe there would be a way to single source this in the future. They do handle paths differently, so it would likely require a larger conversation.
`rustup show` and `rustup toolchain list` have similar lists but the latter was unstyled. This updates it to be styled to match `rustup show` as of rust-lang#4556. Maybe there would be a way to single source this in the future. They do handle paths differently, so it would likely require a larger conversation.
`rustup show` and `rustup toolchain list` have similar lists but the latter was unstyled. This updates it to be styled to match `rustup show` as of #4556. Maybe there would be a way to single source this in the future. They do handle paths differently, so it would likely require a larger conversation.
This changes the parenthetical from `bold` to `CONTEXT` to match what was done in rust-lang#4556. This does not remove the bolding of the item itself. We could do that. I figured its fine for now since there is a clearer meaning with `installed` than when you can have `active` and `default` on separate items.
This changes the parenthetical from `bold` to `CONTEXT` to match what was done in rust-lang#4556. This does not remove the bolding of the item itself. We could do that. I figured its fine for now since there is a clearer meaning with `installed` than when you can have `active` and `default` on separate items.
This changes the parenthetical from `bold` to `CONTEXT` to match what was done in rust-lang#4556. This does not remove the bolding of the item itself. We could do that. I figured its fine for now since there is a clearer meaning with `installed` than when you can have `active` and `default` on separate items.
This changes the parenthetical from `bold` to `CONTEXT` to match what was done in #4556. This does not remove the bolding of the item itself. We could do that. I figured its fine for now since there is a clearer meaning with `installed` than when you can have `active` and `default` on separate items.
This is continuing my effort to make end-user commands more similar. This isn't meant to force conformancy where it doesn't make sense. My assumption is to first get things similar and then work on if there is feedback. Cargo is doing that with rust; there are things we want to change but priority is on being the same before we try to change. At least for myself, I don't feel anything is sacred and can be re-evaluated.
This is setup to match

cargo infos style:For testing, I forked an existing test rather than using SVGs for all of the existing tests. Having the output inline with the existing tests makes it easier to reason about and the number of test cases relevant for checknng styling is much smaller than for the main logic.