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

Fix (in part) #4204: Honour NO_COLOR variable #4260

Merged
merged 1 commit into from
Aug 25, 2018

Conversation

mpilgrem
Copy link
Member

Adopt the standard proposed at http://no-color.org/, that colour should not be added by default if the NO_COLOR environment variable is present, by adapting defaultColorWhen in module Stack.DefaultColorWhen (which varies depending on whether the operating system is Windows or Unix-like).

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary. (Not necessary.)

Please also shortly describe how you tested your change. Bonus points for added tests!
Tested on Windows 10 by building - stack test - and using the built tool, as below:
image

Adopt the standard proposed at `http://no-color.org/`, that color should not be added by default if the `NO_COLOR` environment variable is present, by adapting `defaultColorWhen` in module `Stack.DefaultColorWhen`.
@mihaimaruseac mihaimaruseac merged commit 73df857 into commercialhaskell:master Aug 25, 2018
@mpilgrem mpilgrem deleted the fix4204B branch August 25, 2018 18:43
@mpilgrem
Copy link
Member Author

@mihaimaruseac, it seems that merging this was a little premature - there is a problem with the Unix build. I'm about to make a further pull request that fixes that.

mpilgrem added a commit to mpilgrem/stack that referenced this pull request Aug 25, 2018
@mihaimaruseac
Copy link
Contributor

Thanks. That should teach me not to rush things.

mihaimaruseac added a commit that referenced this pull request Aug 26, 2018
Repair PR #4260: Add imports to Stack.DefaultColorWhen
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.

2 participants