You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @LukasBil this one turned out to be more complex than I thought it would be because the cake.config file is read at a later stage, after the Console has already been created, and the decision to support color (or not) has already been made by then.
In #2975 we introduced a way to opt-out of ANSI coloring by setting an environment variable (
NO_COLOR
).This issue is about introducing two more alternative ways to opt-out of ANSI coloring:
Via a new command-line switch e.g.
--no-color
and/or--settings_color=never
Via a configuration setting in cake.config
For the configuration options, I suggest adding a new configuration value under
Settings
calledColor
, which can be one of the following values:auto
- Let AnsiDetector decide if color is supported or not based on environment (default)never
- opt out of coloring, regardless of environment (skip the logic to detect if color is supported or not)always
- opt in on coloring, regardless of environment (skip the logic to detect if color is supported or not)The
color
option would be available as ...--settings_color <value>
Color=value
(under theSettings
section)CAKE_SETTINGS_COLOR=value
... and follow the same priority order as other configuration values.
The text was updated successfully, but these errors were encountered: