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
Is your feature request related to a problem? Please describe.
We're running ggshield in a shell environment where color codes are not supported. The output is collected in a log file and when viewing that file the output is hard to read. See the example below.
Describe the solution you'd like
An option to enable/disable colored output (e.g. --no-colors) or an according environment variable would be helpful to disable colors where not desired.
Although not documented (or I wasn't able to find it) but setting the NO_COLOR env var does the trick. You can therefore close the issue but adding this to the documentation would maybe help others.
NO_COLOR is indeed not documented. I am going to file an issue against our doc to fix this.
Right now ggshield disables color when the output is redirected to a file, unless it recognizes it's running in a CI with color support. This needs to be changed so that color is not enabled when redirected to a file even if it's running in a CI with color support.
Is your feature request related to a problem? Please describe.
We're running ggshield in a shell environment where color codes are not supported. The output is collected in a log file and when viewing that file the output is hard to read. See the example below.
Describe the solution you'd like
An option to enable/disable colored output (e.g. --no-colors) or an according environment variable would be helpful to disable colors where not desired.
Additional context
This is how the output looks in our environment:
The text was updated successfully, but these errors were encountered: