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

Adding Terraform -no-color option #258

Closed
wants to merge 1 commit into from
Closed

Conversation

n8felton
Copy link

terraform does not yet support NO_COLOR, but most commands support a -no-color option.

There is an open discussion at hashicorp/terraform#23708 to implement NO_COLOR, but it appears the issue could use some help with clarifying some things.

@@ -310,6 +310,7 @@ color by default via `NO_COLOR`.
| [Radare](https://www.radare.org/r/) | `radare2 -e scr.color=0` |
| [RSpec](http://rspec.info/) | `export SPEC_OPTS=--no-color` |
| [Ruby (tests)](https://www.ruby-lang.org/) | `export RUBY_TESTOPTS=--color=never` |
| [Terraform](https://www.terraform.io/) | `terraform [main command] -no-color` ([Docs](https://developer.hashicorp.com/terraform/cli/commands/plan#no-color) \| [Open Issue](https://github.com/hashicorp/terraform/issues/23708)) |
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it should have two hyphens; in this PR, there is only one (i.e., it's currently -no-color, but should be --no-color).

Copy link

@zliebersbach zliebersbach Jun 5, 2024

Choose a reason for hiding this comment

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

No, Terraform uses a single -no-color for this argument, and all other arguments.

Output from terraform plan -help

...
  -no-color                  If specified, output won't contain any color.
...

@jcs
Copy link
Owner

jcs commented Dec 2, 2024

Please re-open if it ever merges

@jcs jcs closed this Dec 2, 2024
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.

4 participants