hashicorp / hashicorp/terraform-exec

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

Open
#264 10 comments 17 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
786
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/hashicorp/terraform-exec/blob/1564ef0dfcc71eb3ade3f103de5cba5aa0d889b3/tfexec/show.go#L187) 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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.