- OS
{{OS}}resolves to current running osruntime.GOOS - ARCH
{{ARCH}}resolves to current processor architectureruntime.GOARCH
- PWD
{{PWD}}resolves to current working directory - FromSlash
{{FromSlash}}uses go functionfilepath.FromSlash - ToSlash
{{ToSlash}}uses go functionfilepath.ToSlash - ReadFile
{{ReadFile}}read file contents, supports relative or absolute paths. - WriteFile
{{WriteFile 'file/path' 'string data'}}write file contents, supports relative or absolute paths. - RemoveAll
{{RemoveAll 'file/path'}}CAUTION removes file or folder and all children - MkdirAll
{{MkdirAll}} - Touch
{{Touch}}
- ToTitle
{{ToTitle}}uses go functionstrings.Title - ToUpper
{{ToUpper}}uses go functionstrings.ToUpper - ToLower
{{ToLower}}uses go functionstrings.ToLower - Replace
{{Replace}}uses go functionstrings.Replace
{{EXEC `echo "hello"`}}
{{TRY `fails` | default `default value`}}
{{Expand}}
{{ReadFile `my-template-file.yaml` | ExpandFile | WriteFile}}
{{JQ 'key.value[0]', '{"key": {"value":[1]} }'}}
{{ReadFile `my-file.json` | JQ `key.value[0]`}}
{{ReadFile `my-file.yaml` | YQ `key.value[0]`}}