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 FORCE_COLOR support #156

Closed
wants to merge 2 commits into from
Closed

Conversation

cardil
Copy link

@cardil cardil commented Jan 26, 2022

Fixes #155

@cardil
Copy link
Author

cardil commented Jul 9, 2022

/cc @fatih

Can I ask you for a review? 🙏

@aaronshurley
Copy link

@fatih +1, we have a project that would love to see this capability merged (and released 😁).

Copy link
Contributor

@pellared pellared left a comment

Choose a reason for hiding this comment

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

I also disagree that this functionality should be merged

if ev, set := os.LookupEnv("FORCE_COLOR"); set {
ev = strings.ToLower(ev)
if mode, err := strconv.Atoi(ev); err == nil {
return colorMode(mode)
Copy link
Contributor

Choose a reason for hiding this comment

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

undocumented functionality (nor in README.md nor in doc comments)

@fatih
Copy link
Owner

fatih commented Jan 18, 2023

Sorry for the late response. But this feature adds complexity that I'm not willing to maintain in the long run.

Forcing color is something that library importers can easily add themselves. I'll evaluate it in the future again if this becomes a standard in the industry (and by standard, I mean it's widely used).

@cardil thanks for you work though, and I hope you understand why I don't want to merge.

@fatih fatih closed this Jan 18, 2023
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.

Support for FORCE_COLOR
4 participants