Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-10-24 20:01:13 +08:00
parent 39d0371d15
commit 6be3c11119
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import (
"github.com/helmfile/helmfile/pkg/config" "github.com/helmfile/helmfile/pkg/config"
) )
// NewFetchCmd returns diff subcmd // NewFetchCmd returns fetch subcmd
func NewFetchCmd(globalCfg *config.GlobalImpl) *cobra.Command { func NewFetchCmd(globalCfg *config.GlobalImpl) *cobra.Command {
fetchOptions := config.NewFetchOptions() fetchOptions := config.NewFetchOptions()

View File

@ -41,7 +41,7 @@ func toCLIError(g *config.GlobalImpl, err error) error {
} }
// NewRootCmd creates the root command for the CLI. // 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{ cmd := &cobra.Command{
Use: "helmfile", Use: "helmfile",
Short: globalUsage, Short: globalUsage,

View File

@ -7,7 +7,7 @@ import (
"github.com/helmfile/helmfile/pkg/config" "github.com/helmfile/helmfile/pkg/config"
) )
// NewWriteValuesCmd returns write subcmd // NewWriteValuesCmd returns write-values subcmd
func NewWriteValuesCmd(globalCfg *config.GlobalImpl) *cobra.Command { func NewWriteValuesCmd(globalCfg *config.GlobalImpl) *cobra.Command {
writeValuesOptions := config.NewWriteValuesOptions() writeValuesOptions := config.NewWriteValuesOptions()

View File

@ -22,7 +22,7 @@ func main() {
}() }()
globalConfig := new(config.GlobalOptions) globalConfig := new(config.GlobalOptions)
rootCmd, err := cmd.NewRootCmd(globalConfig, os.Args[1:]) rootCmd, err := cmd.NewRootCmd(globalConfig)
errors.HandleExitCoder(err) errors.HandleExitCoder(err)
if err := rootCmd.Execute(); err != nil { if err := rootCmd.Execute(); err != nil {