refactor: 整理结构和 maker 构建方式
This commit is contained in:
@@ -3,6 +3,7 @@ package makecmd
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"yizhisec.com/hsv2/forge/internal/controller/maker"
|
||||
"yizhisec.com/hsv2/forge/internal/opt"
|
||||
)
|
||||
|
||||
func ConfigMap() *cobra.Command {
|
||||
@@ -11,7 +12,7 @@ func ConfigMap() *cobra.Command {
|
||||
Aliases: []string{"cm"},
|
||||
Short: "构建 ConfigMap",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mk := maker.NewMaker()
|
||||
mk := maker.NewMaker(opt.Cfg.Make.Dir)
|
||||
return mk.ConfigMap(cmd.Context())
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user