From d28343550ffecab72bbf35563312934f27f79231 Mon Sep 17 00:00:00 2001 From: Mohammadreza Asadollahifard Date: Fri, 11 Jul 2025 21:08:32 +0100 Subject: [PATCH] feat: make color output opt-in by default Signed-off-by: Mohammadreza Asadollahifard --- pkg/cli/environment.go | 4 ++-- pkg/cmd/root.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cli/environment.go b/pkg/cli/environment.go index 223a7cb15..111338e8a 100644 --- a/pkg/cli/environment.go +++ b/pkg/cli/environment.go @@ -231,8 +231,8 @@ func envColorMode() string { return v } } - // Default to auto - return "auto" + // Default to never (disabled) until more commands support color + return "never" } func (s *EnvSettings) EnvVars() map[string]string { diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index 8451821b6..3d0180d86 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -81,7 +81,7 @@ Environment variables: | $HELM_KUBETLS_SERVER_NAME | set the server name used to validate the Kubernetes API server certificate | | $HELM_BURST_LIMIT | set the default burst limit in the case the server contains many CRDs (default 100, -1 to disable) | | $HELM_QPS | set the Queries Per Second in cases where a high number of calls exceed the option for higher burst values | -| $HELM_COLOR | set color output mode. Allowed values: never, always, auto (default: auto) | +| $HELM_COLOR | set color output mode. Allowed values: never, always, auto (default: never) | | $NO_COLOR | set to any non-empty value to disable all colored output (overrides $HELM_COLOR) | Helm stores cache, configuration, and data based on the following configuration order: