From 946a69e4ee664e9dc40edf1281bfcfd16269ee02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan-Luis=20de=20Sousa-Valadas=20Casta=C3=B1o?= Date: Fri, 2 Feb 2024 18:04:54 +0100 Subject: [PATCH] Make newRootCmd public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan-Luis de Sousa-Valadas CastaƱo --- cmd/helm/app/helm.go | 2 +- cmd/helm/app/helm_test.go | 2 +- cmd/helm/app/root.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/app/helm.go b/cmd/helm/app/helm.go index f3a5648c6..d118f90fa 100644 --- a/cmd/helm/app/helm.go +++ b/cmd/helm/app/helm.go @@ -63,7 +63,7 @@ func Main() { kube.ManagedFieldsManager = "helm" actionConfig := new(action.Configuration) - cmd, err := newRootCmd(actionConfig, os.Stdout, os.Args[1:]) + cmd, err := NewRootCmd(actionConfig, os.Stdout, os.Args[1:]) if err != nil { warning("%+v", err) os.Exit(1) diff --git a/cmd/helm/app/helm_test.go b/cmd/helm/app/helm_test.go index f00c407ab..670fe74c1 100644 --- a/cmd/helm/app/helm_test.go +++ b/cmd/helm/app/helm_test.go @@ -97,7 +97,7 @@ func executeActionCommandStdinC(store *storage.Storage, in *os.File, cmd string) Log: func(format string, v ...interface{}) {}, } - root, err := newRootCmd(actionConfig, buf, args) + root, err := NewRootCmd(actionConfig, buf, args) if err != nil { return nil, "", err } diff --git a/cmd/helm/app/root.go b/cmd/helm/app/root.go index 253b92cba..c555010ad 100644 --- a/cmd/helm/app/root.go +++ b/cmd/helm/app/root.go @@ -87,7 +87,7 @@ By default, the default directories depend on the Operating System. The defaults | Windows | %TEMP%\helm | %APPDATA%\helm | %APPDATA%\helm | ` -func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string) (*cobra.Command, error) { +func NewRootCmd(actionConfig *action.Configuration, out io.Writer, args []string) (*cobra.Command, error) { cmd := &cobra.Command{ Use: "helm", Short: "The Helm package manager for Kubernetes.",