fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.24k stars 615 forks source link

Allow force enable colored output with an environment variable #105

Closed andreynering closed 5 years ago

andreynering commented 5 years ago

Use case: when you have tool that calls another tool that uses fatih/color, redirecting output (e.g. using os/exec), you lose colors, because it don't pass the checks provided by mattn/go-isatty

An environment variable would allow you to bypass that check

fatih commented 5 years ago

Hi,

Unfortunately, I'm archiving this project and will no longer maintaining it. For more information, please read my blog post: Taking an indefinite sabbatical from my projects.

Thanks for the feedback and contribution.