feat: 🏡 make apps
This commit is contained in:
19
internal/cmd/makecmd/proxy.go
Normal file
19
internal/cmd/makecmd/proxy.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package makecmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"yizhisec.com/hsv2/forge/internal/controller/maker"
|
||||
)
|
||||
|
||||
func Proxy() *cobra.Command {
|
||||
_cmd := &cobra.Command{
|
||||
Use: "proxy",
|
||||
Short: "Make Proxy(by caddy)",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mk := maker.NewMaker()
|
||||
return mk.Proxy(cmd.Context())
|
||||
},
|
||||
}
|
||||
|
||||
return _cmd
|
||||
}
|
||||
Reference in New Issue
Block a user