[FEATURE]: Ability to disable colorised output
See original GitHub issueFeature Request
Background / Motivation
Currently there doesn’t appear to be a way to disable colourised output besides using a JSON/YAML output format. This can cause issues with terminals that don’t fully support colourisation or font change e.g. italics. An example below
Admittedly the funny looking font is my terminal configuration (Default Windows Terminal with Cascadia Code Italics) but I cannot disable this “feature” in garden
It also causes issues in CI logging tools and spews out ANSI codes in log output.
What should the user be able to do?
There already exists a --log-level
command line argument. I would like a --no-color
argument as well to disable any fancy colouristation of output. Or perhaps an additional log-level of no-color
which behave like basic
but also have no colour.
This would also disable the ability to move the cursor easily using ANSI sequences so I’d expect this is an opt in setting.
Why do they want to do this? What problem does it solve?
If my terminal renders the “fancy” text incorrectly, I can quickly disable it so I can read the output of Garden
Suggested Implementation(s)
As above. either add --no-color
or --log-level no-color
How important is this feature for you/your team?
🌵 Not having this feature makes using Garden painful
The rendered text is more difficult to read with a default install of Windows Terminal
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
There is actually an undocumented way to do this with an environment variable:
FORCE_COLOR=0
. But the feature request is still definitely legit, we should have a canonical + documented way to do this.This issue has been automatically marked as stale because it hasn’t had any activity in 90 days. It will be closed in 14 days if no further activity occurs (e.g. changing labels, comments, commits, etc.). Please feel free to tag a maintainer and ask them to remove the label if you think it doesn’t apply. Thank you for submitting this issue and helping make Garden a better product!