A simple utility for rendering Go Templates with the Sprig library and/or the Helm Templating Language.
Go to file
2023-10-23 10:55:46 +00:00
helm use helm engine for helm templating 2023-10-21 15:06:55 +02:00
.gitlab-ci.yml Update .gitlab-ci.yml file to build statically for multi-arch and platforms 2023-10-23 10:55:46 +00:00
go.mod begin adding helm compatibility layer 2023-10-15 13:43:28 +02:00
go.sum begin adding helm compatibility layer 2023-10-15 13:43:28 +02:00
LICENSE Add LICENSE 2023-10-12 18:04:03 +00:00
main.go no support warnings 2023-10-23 11:52:28 +02:00
README.md not strict by default 2023-10-23 11:48:16 +02:00

spry

Basic Sprig Template Rendering.

Usage Examples

$ ./spry
Usage of ./spry [Options] [Template Files]:
  -d string
        Output delimiter between template files rendered (default "---")
  -delimErr
        Whether to print output delimiter to STDERR.
  -f value
        Specify a values file (JSON or YAML)
  -filenameErr
        Whether to print filename to STDERR. (default true)
  -fp string
        Prefix for the filename in the output. (default "# ")
  -helm
        Use Helm templating language (superset of Sprig).
  -helmDNS
        When using Helm Tpl Lang, support DNS resolution. (default true)
  -helmLint
        When using Helm Tpl Lang, enable the Linting Mode.
  -helmNestValues
        When using Helm Tpl Lang, Nest provided values under '.Values' (default true)
  -helmStrict
        When using Helm Tpl Lang, use strict rendering.
  -set value
        Set a specific value (foo.bar=spam)

Template Files can also be directories to recurse for templates.

If no template files are provided it will attempt read from STDIN.
If no input is available from STDIN it will print this usage message instead.
Pass only '-' to Template Files to force waiting for input.

Helm Mode: use the Helm Templating Language/Engine
with the following caveats:
        - 'lookup' function unavailable.