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
Add support for opting out of ANSI coloring via NO_COLOR env. variable #2975
Comments
Configuration should IMHO be possible as other configuration options through environment variable, configuration file and argument. @patriksvensson Is this something which should be done in Spectre.CLI? |
@pascalberger Makes sense to respect |
Sounds good. For the configuration options, I suggest adding a new configuration value under
The
... and follow the same priority order as other configuration values. As for |
…nv. variable is present https://no-color.org
…nv. variable is present https://no-color.org
…loring-with-no_color-env-variable GH-2975: Prevents the addition of ANSI color if NO_COLOR env. variable is present
🎉 This issue has been resolved in version v1.1.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Cake is able to detect if ANSI coloring is supported in a number of cases, but once it detects that color is supported, there's no way of opting out of it at the moment.
Some ideas:
NO_COLOR
seems to be a standard) to opt out of ANSI coloring--no-color
and/or--color=false
to opt out of ANSI coloringCommon options used to determine if ANSI coloring should be disabled used by some apps on GitHub:
Command-line arguments:
--no-color
--no-colors
--color=false
--color=never
Environment variables:
TERM=dumb
FORCE_COLOR=false
FORCE_COLOR=0
The text was updated successfully, but these errors were encountered: