From fa8dcc2c8f416ccf7aaf07dd011a5077119950c9 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Sun, 18 Sep 2022 20:18:57 +0800 Subject: [PATCH 1/2] update CLI Ref Signed-off-by: yxxhero --- docs/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/index.md b/docs/index.md index 83205421..db3a9e95 100644 --- a/docs/index.md +++ b/docs/index.md @@ -518,10 +518,13 @@ Flags: -c, --chart string Set chart. Uses the chart set in release by default, and is available in template as {{ .Chart }} --color Output with color --debug Enable verbose output for Helm and set log-level to debug, this disables --quiet/-q effect + --enable-live-output Show live output from the Helm binary Stdout/Stderr into Helmfile own Stdout/Stderr. + It only applies for the Helm CLI commands, Stdout/Stderr for Hooks are still displayed only when it's execution finishes. -e, --environment string specify the environment name. defaults to "default" -f, --file helmfile.yaml load config from file or directory. defaults to helmfile.yaml or `helmfile.d`(means `helmfile.d/*.yaml`) in this preference -b, --helm-binary string Path to the helm binary (default "helm") -h, --help help for helmfile + -i, --interactive Request confirmation before attempting to modify clusters --kube-context string Set kubectl context. Uses current context by default --log-level string Set log level, default info (default "info") -n, --namespace string Set namespace. Uses the namespace set in the context by default, and is available in templates as {{ .Namespace }} From a1c8926a864299b37dc4e01bea4cfa41a9397567 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Sun, 18 Sep 2022 20:21:10 +0800 Subject: [PATCH 2/2] fix enable-live-output style Signed-off-by: yxxhero --- cmd/root.go | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index a395579c..c84eb0e5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -115,7 +115,7 @@ A release must match all labels in a group in order to be used. Multiple groups The name of a release can be used as a label: "--selector name=myrelease"`) fs.BoolVar(&globalOptions.AllowNoMatchingRelease, "allow-no-matching-release", false, `Do not exit with an error code if the provided selector has no matching releases.`) fs.BoolVar(&globalOptions.EnableLiveOutput, "enable-live-output", globalOptions.EnableLiveOutput, `Show live output from the Helm binary Stdout/Stderr into Helmfile own Stdout/Stderr. - It only applies for the Helm CLI commands, Stdout/Stderr for Hooks are still displayed only when it's execution finishes.`) +It only applies for the Helm CLI commands, Stdout/Stderr for Hooks are still displayed only when it's execution finishes.`) fs.BoolVarP(&globalOptions.Interactive, "interactive", "i", false, "Request confirmation before attempting to modify clusters") // avoid 'pflag: help requested' error (#251) fs.BoolP("help", "h", false, "help for helmfile") diff --git a/docs/index.md b/docs/index.md index db3a9e95..72fd97bb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -519,7 +519,7 @@ Flags: --color Output with color --debug Enable verbose output for Helm and set log-level to debug, this disables --quiet/-q effect --enable-live-output Show live output from the Helm binary Stdout/Stderr into Helmfile own Stdout/Stderr. - It only applies for the Helm CLI commands, Stdout/Stderr for Hooks are still displayed only when it's execution finishes. + It only applies for the Helm CLI commands, Stdout/Stderr for Hooks are still displayed only when it's execution finishes. -e, --environment string specify the environment name. defaults to "default" -f, --file helmfile.yaml load config from file or directory. defaults to helmfile.yaml or `helmfile.d`(means `helmfile.d/*.yaml`) in this preference -b, --helm-binary string Path to the helm binary (default "helm")