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

cargo tree needs colors #10558

Open
mathstuf opened this issue Apr 12, 2022 · 3 comments
Open

cargo tree needs colors #10558

mathstuf opened this issue Apr 12, 2022 · 3 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-tree S-triage Status: This issue is waiting on initial triage.

Comments

@mathstuf
Copy link
Contributor

Problem

cargo tree is nice, but bard to read. Some color to help separate things like name, version, etc. would be handy.

Proposed Solution

Add support for colorizing parts of the output.

Notes

No response

@mathstuf mathstuf added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Apr 12, 2022
@bazzilic
Copy link

bazzilic commented Apr 3, 2023

I'd like to also propose optional colorized highlighting of packages based on substring search. E.g., cargo tree --highlight serde. This would make it easier to spot a package of interest among lots of dependencies.

Additionally, it may take several substrings and highlight them in different colors, e.g.
cargo tree --highlight serde,cpufeatures or
cargo tree --highlight serde --highlight cpufeatures

@epage
Copy link
Contributor

epage commented Apr 3, 2023

@bazzilic maybe its just me but I feel like that should be a separate issue to keep them better scoped.

@bazzilic
Copy link

bazzilic commented Apr 3, 2023

@epage I think you are right, opened a separate issue #11932

@epage epage added the S-triage Status: This issue is waiting on initial triage. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-tree S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

3 participants