defunkt / gist

Potentially the best command line gister.
http://defunkt.io/gist/
MIT License
3.8k stars 340 forks source link

Terraform plan and strange gibberish at every line start #348

Closed mkozjak closed 2 years ago

mkozjak commented 2 years ago

terraform plan | gist -p

produces

[0mmodule.prometheus.module.ec2_...

For example

Changes to Outputs: in regular stdout comes up as Changes to Outputs: in gist.

ConradIrwin commented 2 years ago

These look like ANSI escape codes, which are used by shell commands to create colors (but are not parsed by gist, which expects plain text).

You should be able to remove them by running terraform plan -no-color: https://www.terraform.io/cli/commands/plan.

mkozjak commented 2 years ago

Thanks!!