dineshba / tf-summarize

A command-line utility to print the summary of the terraform plan
MIT License
534 stars 38 forks source link

Feature: differentiate between (+/-) and (-/+) in output #59

Closed QuintenBruynseraede closed 11 months ago

QuintenBruynseraede commented 11 months ago

This PR adds a different suffix for "create-delete" and "delete-create", as defined by Terraform's internal change representation.

"create-delete" becomes suffix (+/-), "delete-create" becomes suffix (-/+). Although I'm unable to reproduce "create-delete" with Terraform itself, I modified a json statefile manually and the output is as expected.

image

Closes issue #42

QuintenBruynseraede commented 11 months ago

I notice the build failed, possibly because the slices package wasn't available in go 1.20? Should I add a helper function to do the check or can we update to 1.21?

dineshba commented 11 months ago

We can update to 1.21 @QuintenBruynseraede

QuintenBruynseraede commented 11 months ago

Thanks @dineshba, fixed the build issues now. Can you trigger another run please?