mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-20 17:11:51 +02:00
Optimize cmd pkg (#384)
Signed-off-by: yxxhero <aiopsclub@163.com> Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
+1
-1
@@ -10,12 +10,12 @@ import (
|
||||
// NewReposCmd returns repos subcmd
|
||||
func NewReposCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
||||
reposOptions := config.NewReposOptions()
|
||||
reposImpl := config.NewReposImpl(globalCfg, reposOptions)
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "repos",
|
||||
Short: "Repos releases defined in state file",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
reposImpl := config.NewReposImpl(globalCfg, reposOptions)
|
||||
err := config.NewCLIConfigImpl(reposImpl.GlobalImpl)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user