diff --git a/renderHTML.go b/renderHTML.go index c58c890..fa130f1 100644 --- a/renderHTML.go +++ b/renderHTML.go @@ -7,31 +7,61 @@ import ( func RenderExecutionPlanAsHTML(plan [][]*Workspace) string { tmplSrc := ` - Execution Plan + +
{{range $tier, $workspaces := .}} -

Tier {{ $tier }}

+

({{$tier}}) Tier {{ $tier }}

{{range $i, $workspace := $workspaces}} -

Workspace {{$workspace.Root}}

+

({{$tier}}.{{$i}}) Workspace {{$workspace.Root}}

{{if $workspace.PreManualRendered}}

Manual Pre-Work

+
{{$workspace.PreManualRendered}} +
{{end}}

Terraform

- +

   (cd {{ $workspace.Root }} && terraform apply)
-  
+  
{{if $workspace.PostManualRendered}}

Manual Post-Work

+
{{$workspace.PostManualRendered}} - {{end}} - {{end}} - {{end}} +
+ {{end}}{{end}}{{end}} +
` var out bytes.Buffer