mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-03 20:58:43 +00:00
* added custom templates support * made default templates DRY * Change init to anonymous function. * Initialize anonymous function inside var * - Add flag/cfg param for custom template dir - Add test for custom template * Add documentation. * Address PR comments. Co-authored-by: Ricard Bejarano <ribejara@thousandeyes.com>
9 lines
328 B
Cheetah
9 lines
328 B
Cheetah
{{ define "multiProjectApply" -}}
|
|
{{ template "multiProjectHeader" . }}
|
|
{{ range $i, $result := .Results }}### {{add $i 1}}. {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`
|
|
{{$result.Rendered}}
|
|
|
|
---
|
|
{{end}}{{ template "log" . }}
|
|
{{ end }}
|