A simple utility for rendering Go Templates with the Sprig library and/or the Helm Templating Language.
Go to file
2023-10-13 15:51:56 +02:00
go.mod
go.sum
LICENSE
main.go
README.md

spry

Basic Sprig Template Rendering.

Functions similar to Helm Templating, but without the special K8s functions like lookup.

Usage Examples

$ ./spry
Usage of ./spry [Options] [Template Files]:
  -d string
        Output delimiter between template files rendered (default "---")
  -f value
        Specify a values file (JSON or YAML)
  -helm
        Helm compatibility: provided values will be nested under .Values
  -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.