Skip to content
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

src: support NO_COLOR environment variable #102

Merged
merged 1 commit into from
Oct 24, 2023
Merged

src: support NO_COLOR environment variable #102

merged 1 commit into from
Oct 24, 2023

Conversation

ligurio
Copy link

@ligurio ligurio commented Oct 24, 2023

NO_COLOR is a de-facto standard environment variable for disabling colors, see [1]:

Command-line software which adds ANSI color to its output by default
should check for a NO_COLOR environment variable that, when present and
not an empty string (regardless of its value), prevents the addition of
ANSI color.

  1. https://no-color.org/

NO_COLOR is a de-facto standard environment variable for disabling
colors, see [1]:

> Command-line software which adds ANSI color to its output by default
> should check for a NO_COLOR environment variable that, when present and
> not an empty string (regardless of its value), prevents the addition of
> ANSI color.

The patch disables coloring when NO_COLOR is not empty.

1. https://no-color.org/
@alerque alerque merged commit 031db72 into lunarmodules:master Oct 24, 2023
9 of 10 checks passed
@alerque
Copy link
Member

alerque commented Oct 25, 2023

Thanks for taking the time to contribute.

@ligurio ligurio deleted the ligurio/no-color branch October 29, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants