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

Add support for the NO_COLOR environment variable #8

Merged
merged 4 commits into from
Jan 31, 2025

Conversation

oleiade
Copy link
Member

@oleiade oleiade commented Jan 31, 2025

This Pull Request adds support for the NO_COLOR environment variable.

When set, the colorize configuration option will always be enforced to false. If unset the colorize configuration option will be handled as usual.

ref #7

@oleiade oleiade requested a review from Copilot January 31, 2025 15:45
@oleiade oleiade self-assigned this Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

config.ts:29

  • [nitpick] The variable name noColor is ambiguous. It should be renamed to isNoColor to indicate that it's a boolean flag.
const noColor = env.NO_COLOR !== undefined;
@oleiade oleiade merged commit d611e24 into main Jan 31, 2025
3 checks passed
@oleiade oleiade deleted the feature/controllable-colorize branch January 31, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant