Add example of --template usage

Current documentation list all available template vars, but does not provide an example of a template string that demonstrates template substitution. I had to look it up in the unit test.

Signed-off-by: Iaroslav Sheptykin <i.sheptykin@neusta.de>
pull/9679/head
Iaroslav Sheptykin 3 years ago committed by Iaroslav Sheptykin
parent 43853ea772
commit 892130a08b

@ -48,6 +48,8 @@ the template:
- .GitCommit is the git commit
- .GitTreeState is the state of the git tree when Helm was built
- .GoVersion contains the version of Go that Helm was compiled with
For example, --template '{{.Version}}' outputs 'v3.2.1'. See [unit tests](https://github.com/helm/helm/blob/main/cmd/helm/version_test.go) for further examples.
`
type versionOptions struct {

Loading…
Cancel
Save