diff --git a/cmd/fetch.go b/cmd/fetch.go index 06fa8e15..1520a944 100644 --- a/cmd/fetch.go +++ b/cmd/fetch.go @@ -7,7 +7,7 @@ import ( "github.com/helmfile/helmfile/pkg/config" ) -// NewFetchCmd returns diff subcmd +// NewFetchCmd returns fetch subcmd func NewFetchCmd(globalCfg *config.GlobalImpl) *cobra.Command { fetchOptions := config.NewFetchOptions() diff --git a/cmd/root.go b/cmd/root.go index 52627612..ee0962a6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -41,7 +41,7 @@ func toCLIError(g *config.GlobalImpl, err error) error { } // NewRootCmd creates the root command for the CLI. -func NewRootCmd(globalConfig *config.GlobalOptions, args []string) (*cobra.Command, error) { +func NewRootCmd(globalConfig *config.GlobalOptions) (*cobra.Command, error) { cmd := &cobra.Command{ Use: "helmfile", Short: globalUsage, diff --git a/cmd/write-values.go b/cmd/write-values.go index 2840cd11..b9eb5e55 100644 --- a/cmd/write-values.go +++ b/cmd/write-values.go @@ -7,7 +7,7 @@ import ( "github.com/helmfile/helmfile/pkg/config" ) -// NewWriteValuesCmd returns write subcmd +// NewWriteValuesCmd returns write-values subcmd func NewWriteValuesCmd(globalCfg *config.GlobalImpl) *cobra.Command { writeValuesOptions := config.NewWriteValuesOptions() diff --git a/main.go b/main.go index 7f51f67c..7b66573f 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func main() { }() globalConfig := new(config.GlobalOptions) - rootCmd, err := cmd.NewRootCmd(globalConfig, os.Args[1:]) + rootCmd, err := cmd.NewRootCmd(globalConfig) errors.HandleExitCoder(err) if err := rootCmd.Execute(); err != nil {