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

Colored output #65

Open
segeljakt opened this issue Nov 11, 2024 · 1 comment
Open

Colored output #65

segeljakt opened this issue Nov 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@segeljakt
Copy link

Hi, would it be possible to, optionally via a config flag, add some colors to the output to make it easier to distinguish execution times? For example, in each of the "fastest │ slowest │ median │ mean" columns, slower times could be colored red and faster times green. I think the colored crate could be useful.

@nvzqz
Copy link
Owner

nvzqz commented Nov 26, 2024

Thanks for the suggestion! I have considered coloring by column and bolding labels, but I haven't gotten around to applying any styling yet.

For this I will probably reach for @epage's anstyle crate because:

  • Its goals are aligned with Divan's (low overhead, few/no dependencies)
  • API stability
  • It's already a transitive dependency through clap

@nvzqz nvzqz added the enhancement New feature or request label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants