diff --git a/cmd/helm/get_hooks.go b/cmd/helm/get_hooks.go index dc93fb1dfc1b77d8cd2c1a67a9767fae3215a0a8..ea57838afce2c30cd8de9151eea09cf68b50521c 100644 --- a/cmd/helm/get_hooks.go +++ b/cmd/helm/get_hooks.go @@ -44,9 +44,10 @@ func newGetHooksCmd(client helm.Interface, out io.Writer) *cobra.Command { client: client, } cmd := &cobra.Command{ - Use: "hooks [flags] RELEASE_NAME", - Short: "download all hooks for a named release", - Long: getHooksHelp, + Use: "hooks [flags] RELEASE_NAME", + Short: "download all hooks for a named release", + Long: getHooksHelp, + PreRunE: setupConnection, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return errReleaseRequired diff --git a/cmd/helm/get_manifest.go b/cmd/helm/get_manifest.go index 190c03f484ed3ff1d40ba383521d30b045127bb0..773d8003bc121dc7126a179082059e17ff2afcf3 100644 --- a/cmd/helm/get_manifest.go +++ b/cmd/helm/get_manifest.go @@ -46,9 +46,10 @@ func newGetManifestCmd(client helm.Interface, out io.Writer) *cobra.Command { client: client, } cmd := &cobra.Command{ - Use: "manifest [flags] RELEASE_NAME", - Short: "download the manifest for a named release", - Long: getManifestHelp, + Use: "manifest [flags] RELEASE_NAME", + Short: "download the manifest for a named release", + Long: getManifestHelp, + PreRunE: setupConnection, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return errReleaseRequired diff --git a/cmd/helm/get_values.go b/cmd/helm/get_values.go index bce35958b09e1120332f1f09e46211209b8bc1fa..592f6fe6177d268d0d35715ffe7e8bfac640c5db 100644 --- a/cmd/helm/get_values.go +++ b/cmd/helm/get_values.go @@ -44,9 +44,10 @@ func newGetValuesCmd(client helm.Interface, out io.Writer) *cobra.Command { client: client, } cmd := &cobra.Command{ - Use: "values [flags] RELEASE_NAME", - Short: "download the values file for a named release", - Long: getValuesHelp, + Use: "values [flags] RELEASE_NAME", + Short: "download the values file for a named release", + Long: getValuesHelp, + PreRunE: setupConnection, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return errReleaseRequired