Skip to content
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 drift #123

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: Support Drift directive
  • Loading branch information
albertorm95 committed Dec 7, 2022
commit 9d02b374858bddf62f7593309a483bd5e4a0aed5
14 changes: 6 additions & 8 deletions terraform/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,20 @@ const (
DefaultFmtTemplate = `
{{ .Title }}

{{ .Message }}

{{ .Result }}
<details><summary>Details (Click me)</summary>

{{ .Body }}
<pre><code>{{ .Body }}
</pre></code></details>
`

// DefaultDriftTemplate is a default template for terraform Drift
DefaultDriftTemplate = `
{{ .Title }}

{{ .Message }}

{{ .Result }}
<details><summary>Details (Click me)</summary>

{{ .Body }}
<pre><code>{{ .Body }}
</pre></code></details>
`

// DefaultPlanTemplate is a default template for terraform plan
Expand Down