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

Feature request: Add option to disable -no-color flag #264

Open
agileman-droid opened this issue Dec 27, 2021 · 8 comments · May be fixed by #281
Open

Feature request: Add option to disable -no-color flag #264

agileman-droid opened this issue Dec 27, 2021 · 8 comments · May be fixed by #281

Comments

@agileman-droid
Copy link

Hi guys,

we were wondering if it is possible to enable colored output for the Terraform commands.

We are interested in a colored output of the Terraform plan (in ShowPlanFileRaw). However, the showCmd function automatically adds the -no-color flag. It would be nice if the -no-color flag could be optionally disabled, resulting in colored command output.

Thanks in advance!

@digitalkaoz
Copy link

digitalkaoz commented Feb 22, 2022

Would be interested in a -color flag too

@digitalkaoz digitalkaoz linked a pull request Feb 22, 2022 that will close this issue
@kmoe
Copy link
Member

kmoe commented Apr 12, 2022

Interesting. What is your use case for this?

@agileman-droid
Copy link
Author

We are building a custom infrastructure tool which integrates terraform-exec. So for nicer usability and look and feel, we would like colored Terraform output in this tool.

@digitalkaoz
Copy link

@kmoe we are building a tool which wraps terraform to load var files or configure backends be conventions:

https://github.com/terrarium-tf/cli

so a colored output just makes things a little bit more "native"

@stobias123
Copy link

bump - would love this feature.

@Rulox
Copy link

Rulox commented Dec 2, 2022

+1

I don't understand why the --no-color is hardcoded there, it should be an option.

@digitalkaoz
Copy link

the PR was ready months ago...

@rr-krupesh-savaliya
Copy link

Can we resolve this asap?

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 a pull request may close this issue.

6 participants