-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use hcl
instead of diff
after triple backtick
#2438
Comments
I think the reason why This is what you'd see if it was working properly HCL # module.redacted.aws_route53_record.redacted_record will be updated in-place
~ resource "aws_route53_record" "redacted_record" {
fqdn = "redacted.redacted.redacted.io"
id = "redacted_redacted.redacted.redacted.io_A"
name = "redacted.redacted.redacted.io"
~ records = [
"foo",
- "redacted",
] -> (known after apply)
ttl = 300
type = "A"
zone_id = "redacted"
} Diff # module.redacted.aws_route53_record.redacted_record will be updated in-place
! resource "aws_route53_record" "redacted_record" {
fqdn = "redacted.redacted.redacted.io"
id = "redacted_redacted.redacted.redacted.io_A"
name = "redacted.redacted.redacted.io"
! records = [
"foo",
- "redacted",
] -> (known after apply)
ttl = 300
type = "A"
zone_id = "redacted"
} |
@pauloconnor hmmm I'm not sure I follow. I would much prefer the I suppose this is where the custom templating comes in in the next version. To me, it doesn't make sense why we would use a different syntax than the native hcl. The |
@nitrocode I think it boils down to |
This is a duplicate of #1339 apparently. Perhaps the best way to implement this then is with a feature flag such as |
#1339 was closed with a feature that allows the user to supply their own templates. I'm taking that as a signal that they don't want to do the work to support variants of the templates they already maintain. Edit: ...which is completely fair, to be clear. |
👋🏻 This is a feature our team would like to see too. We prefer the output with |
Community Note
Describe the user story
I'd like to see the same colored output in atlantis' comment as I would locally in my command line
Describe the solution you'd like
Let's use
hcl
instead ofdiff
after the triple backtickatlantis/server/events/vcs/azuredevops_client.go
Line 102 in b409cb8
atlantis/server/events/vcs/github_client.go
Lines 186 to 192 in b409cb8
Currently we see this using
diff
If we use
hcl
the github comment syntax highlighting would match what we see locallyDescribe the drawbacks of your solution
I do not know if azure devops vcs supports the
hcl
coloring syntax. I know the github vcs does.Describe alternatives you've considered
related
The text was updated successfully, but these errors were encountered: