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 NO_COLOR (-no-color) support #409

Merged
merged 4 commits into from
Oct 20, 2022
Merged

Add NO_COLOR (-no-color) support #409

merged 4 commits into from
Oct 20, 2022

Conversation

mfridman
Copy link
Collaborator

@mfridman mfridman commented Oct 20, 2022

This PR adds a flag -no-color and an env variable NO_COLOR to disable colored output in logs.

Fix #405

@@ -15,6 +15,7 @@ var (
maxVersion = int64((1 << 63) - 1)
timestampFormat = "20060102150405"
verbose = false
noColor = false
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can't wait to get rid of these globals.

@mfridman mfridman merged commit 5a6c34e into master Oct 20, 2022
@mfridman mfridman deleted the gh-405-no-colors branch October 20, 2022 20:23
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.

Could we have an option not to generate color escape sequences in goose output (ex: -no-color)
1 participant