2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

feat: cli 路由支持

This commit is contained in:
耗子
2024-09-19 01:37:39 +08:00
parent dded5e26aa
commit 407203dcfa
8 changed files with 76 additions and 40 deletions

19
internal/route/cli.go Normal file
View File

@@ -0,0 +1,19 @@
package route
import (
"github.com/urfave/cli/v2"
"github.com/TheTNB/panel/internal/service"
)
func Cli() []*cli.Command {
cliService := service.NewCliService()
return []*cli.Command{
{
Name: "test",
Aliases: []string{"t"},
Usage: "print a test message",
Action: cliService.Test,
},
}
}