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

cmd: Add --color option #1370

Merged
merged 1 commit into from
May 5, 2022
Merged

cmd: Add --color option #1370

merged 1 commit into from
May 5, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented May 3, 2022

Fixes #1325

This PR adds a new --color option. This option forces colorized output to be enabled. Colored output is enabled by default, but is automatically disabled if a tty is not attached. The --color option always enables colorized output, even if the tty is not attached. You can see the behavior by output via a pipe.

$ tflint | less -R
# Disabled color

$ tflint --color | less -R
# Enabled color

@wata727 wata727 merged commit 4f37484 into master May 5, 2022
@wata727 wata727 deleted the force_color branch May 5, 2022 06:58
@mbyio
Copy link

mbyio commented May 5, 2022

Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Please add a way to force colors in the output
2 participants