Optimize cmd pkg (#384)

Signed-off-by: yxxhero <aiopsclub@163.com>

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-10-05 11:02:24 +09:00
committed by GitHub
parent 3165551f9a
commit 5f699656df
14 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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