terraform-exec icon indicating copy to clipboard operation
terraform-exec copied to clipboard

Feature request: Add option to disable `-no-color` flag

Open agileman-droid opened this issue 3 years ago • 9 comments
trafficstars

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!

agileman-droid avatar Dec 27 '21 07:12 agileman-droid

Would be interested in a -color flag too

digitalkaoz avatar Feb 22 '22 20:02 digitalkaoz

Interesting. What is your use case for this?

kmoe avatar Apr 12 '22 10:04 kmoe

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.

agileman-droid avatar Apr 12 '22 11:04 agileman-droid

@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"

digitalkaoz avatar Apr 12 '22 11:04 digitalkaoz

bump - would love this feature.

stobias123 avatar Jun 16 '22 03:06 stobias123

+1

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

Rulox avatar Dec 02 '22 14:12 Rulox

the PR was ready months ago...

digitalkaoz avatar Dec 02 '22 14:12 digitalkaoz

Can we resolve this asap?

rr-krupesh-savaliya avatar Oct 29 '23 18:10 rr-krupesh-savaliya