-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support colored Terraform Plan diffs #51
Comments
Hi @MPV 👋🏻 I do not necessarily represent @alexlouden's views here, but speaking for my team at HashiCorp, we have plans to maintain a canonical generic HCL syntax grammar and such grammar would unlikely support any such human-readable diff output. What may be worth exploring though is some processing of the machine-readable JSON plan output. It should contain basically all the same details that the human-readable output does, or more and it was designed for external integrations just like these and it does come with compatibility guarantees. It does of course mean that you would need to come up with your own "human-readable" format, but the current default |
Asking out of curiosity, in which situation would you want to view the plan output in your editor? And, if not in an editor, where would you want to view it? |
Maybe there's a build that does that in the output pane? But honestly it just looks like Diff syntax to me, plus the weird |
Hm fair, that is the output of In that sense: yes, if we want to add a build system for the plan command, it makes total sense to also have a syntax for it. |
Wouldn't it be cool to support something like on the image below?
i.e. for any
terraform
syntax-highligtedterraform plan
output in GitHub (now that it's used there since #5)(the above was inspired by what they're doing over at https://github.com/robburger/terraform-pr-commenter)
Any ideas of what changes in this repo might be needed in order to support this?
The text was updated successfully, but these errors were encountered: