feat: 🚛 完成了 client 资源创建
This commit is contained in:
@@ -6,15 +6,13 @@ import (
|
||||
"yizhisec.com/hsv2/forge/internal/opt"
|
||||
)
|
||||
|
||||
func Binaries() *cobra.Command {
|
||||
func K0s() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "binaries",
|
||||
Aliases: []string{"bin", "B"},
|
||||
Short: "Build binary files",
|
||||
Long: `Build all required binary files for the project.`,
|
||||
Use: "k0s",
|
||||
Short: "make k0s files(binary, images)",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mk := maker.NewMaker(opt.Cfg.Make.Dir)
|
||||
return mk.Binary(cmd.Context())
|
||||
return mk.K0s(cmd.Context())
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user