Skip to content

Honor the NO_COLOR environment variable - #358

Open
GhostCoder6969 wants to merge 1 commit into
pemistahl:mainfrom
GhostCoder6969:honor-no-color-272
Open

GhostCoder6969 wants to merge 1 commit into
pemistahl:mainfrom
GhostCoder6969:honor-no-color-272

Conversation

@GhostCoder6969

Copy link
Copy Markdown

For #272. The --colorize flag now stays quiet when NO_COLOR is set and not empty, per the no-color.org standard. Empty NO_COLOR still colorizes, and nothing changes when the variable is absent. I added tests for all three cases plus the --help note. Let me know if you would rather handle this inside the builder instead.

The --colorize flag no longer produces ANSI codes when NO_COLOR is present and not empty, per https://no-color.org. Fixes pemistahl#272.
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