github suzuki-shunsuke/tfcmt v4.5.1

latest releases: v4.13.0, v4.12.0, v4.11.0...
12 months ago

Pull Requests | Issues | v4.5.0...v4.5.1

Bug Fixes

  • #117 #896 (#904 #909 #910) Fix parse errors when only Outputs will be changed
  • #903 #911 Support parsing errors and warnings without terraform plan's -no-color option
  • #907 --output: List imported and moved resources
  • #906 Fix the title by error messages

Fix parse errors when only Outputs will be changed

#117 #896 (#904 #909 #910)

tfcmt ever couldn't parse the output of terraform plan if only Terraform's Outputs will be changed.

e.g.

$ tfcmt plan -- terraform plan

Changes to Outputs:
  + foo = "foo"

You can apply this plan to save these new output values to the Terraform
state, without changing any real infrastructure.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

image

As of tfcmt v4.5.1, tfcmt can parse the output properly.

image

Support parsing errors and warnings without terraform plan's -no-color option

#903 #911

tfcmt ever couldn't parse errors and warnings without terraform plan's -no-color option because they start with |.

tfcmt plan -- terraform plan

e.g.

╷
│ Warning: "default_branch": [DEPRECATED] Use the github_branch_default resource instead
│ 
│   with github_repository.tfcmt,
│   on main.tf line 10, in resource "github_repository" "tfcmt":10: resource "github_repository" "tfcmt" {
│ 
│ (and one more similar warning elsewhere)
╵

As of tfcmt v4.5.1, tfcmt supports parsing warnings and errors even if the -no-color option isn't set.

--output: List imported and moved resources

#907

Follow up #881 and #884

https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.5.0

https://suzuki-shunsuke.github.io/tfcmt/output-file

Fix the title by error messages

#906

tfcmt changes the title by the result of terraform commands

Success

## Plan Result

Failure

## :x: Plan Failed

tfcmt evers checked only the exit code of terraform commands,
but as of tfcmt v4.5.1, tfcmt checks also if terraform commands outputs errors.

This is useful when you outputs terraform commands to a text file and runs tfcmt.

e.g.

terraform plan > plan.txt 2>&1
tfcmt plan -- cat plan.txt

Contributors

Thank you for your contribution!

#896 @taro-kayo

Don't miss a new tfcmt release

NewReleases is sending notifications on new releases.