22 lines
444 B
Go
22 lines
444 B
Go
package makecmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"yizhisec.com/hsv2/forge/internal/controller/maker"
|
|
"yizhisec.com/hsv2/forge/internal/opt"
|
|
)
|
|
|
|
func Yosguard() *cobra.Command {
|
|
_cmd := &cobra.Command{
|
|
Use: "yosguard",
|
|
Aliases: []string{"YOS"},
|
|
Short: "Make Yosguard",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
mk := maker.NewMaker(opt.Cfg.Make.Dir)
|
|
return mk.Yosguard(cmd.Context())
|
|
},
|
|
}
|
|
|
|
return _cmd
|
|
}
|