update docs with a better explanation

This commit is contained in:
Diego Fernando Carrión 2023-10-13 15:13:18 +02:00
parent 8067b10b0b
commit 207aad94a0
Signed by: CRThaze
GPG Key ID: 0F647F8A6A3AF588
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,19 @@
# spry
Basic [Sprig](https://masterminds.github.io/sprig/) Template Rendering
Basic [Sprig](https://masterminds.github.io/sprig/) Template Rendering.
Functions similar to Helm Templating, but without the special K8s functions
like `lookup`.
## Usage Examples
```bash
$ ./spry
Usage of ./spry:
-d string
Output delimiter between template files rendered (default "---")
-f value
Specify a values file (JSON or YAML)
-set value
Set a specific value (foo.bar=spam)
```

View File

@ -80,8 +80,8 @@ var flags struct {
}
func init() {
flag.Var(&flags.values, "set", "")
flag.Var(&flags.valuesFiles, "f", "")
flag.Var(&flags.values, "set", "Set a specific value (foo.bar=spam)")
flag.Var(&flags.valuesFiles, "f", "Specify a values file (JSON or YAML)")
flag.StringVar(
&flags.outputDelimiter,
"d", "---",