From 5115ed74d4a970f97cd5f7bd7ca4bc155672cd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Fernando=20Carri=C3=B3n?= Date: Mon, 23 Oct 2023 11:48:16 +0200 Subject: [PATCH] not strict by default --- README.md | 20 +++++++++++++++++++- main.go | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2454cf3..c4e8c9b 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,24 @@ $ ./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 - Helm compatibility: provided values will be nested under .Values + 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) @@ -21,4 +35,8 @@ 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. ``` diff --git a/main.go b/main.go index cb91979..d7335c5 100644 --- a/main.go +++ b/main.go @@ -104,7 +104,7 @@ func init() { ) flag.BoolVar( &flags.helmStrict, - "helmStrict", true, + "helmStrict", false, "When using Helm Tpl Lang, use strict rendering.", ) flag.BoolVar(