From ba5bea17d7112885eee35637b87bc9500d13967e Mon Sep 17 00:00:00 2001 From: yxxhero Date: Sat, 14 May 2022 10:13:09 +0800 Subject: [PATCH] update Readme.md for execEnvs Signed-off-by: yxxhero --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 06be8b87..babc44dc 100644 --- a/README.md +++ b/README.md @@ -1126,6 +1126,16 @@ mysetting: | The possibility is endless. Try importing values from your golang app, bash script, jsonnet, or anything! +Then `execEnvs` same as `exec`, but it can receive a dict as the envs. + +A usual usage of `execEnvs` would look like this: + +```yaml +mysetting: | +{{ execEnvs (dict "envkey" "envValue") "./mycmd" (list "arg1" "arg2" "--flag1") | indent 2 }} +``` + + ## Hooks A Helmfile hook is a per-release extension point that is composed of: