mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
feat: cli 路由支持
This commit is contained in:
19
internal/route/cli.go
Normal file
19
internal/route/cli.go
Normal 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,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user