drewdeponte / git-ps-rs

Official git-ps Rust implementation - the future of git-ps
https://git-ps.sh
MIT License
82 stars 8 forks source link

Support NO_COLOR standard #242

Open Alizter opened 1 year ago

Alizter commented 1 year ago

We should support the NO_COLOR standard.

https://no-color.org/

It will also be useful for cli testing to be able to disable color output.

Alizter commented 1 year ago

There are crates that detect this: https://github.com/sitkevij/no_color

However I am not sure how useful that is, since it is just a wrapper around checking an env var.

Alizter commented 1 year ago

We already have a --no-color option so this should be very simple to do.