mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-04 16:00:24 +08:00
阶段性提交
This commit is contained in:
@@ -2,9 +2,17 @@ package main
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/apis"
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/apps"
|
||||
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
|
||||
_ "github.com/iwind/TeaGo/bootstrap"
|
||||
)
|
||||
|
||||
func main() {
|
||||
apis.NewAPINode().Start()
|
||||
app := apps.NewAppCmd()
|
||||
app.Version(teaconst.Version)
|
||||
app.Product(teaconst.ProductName)
|
||||
app.Usage(teaconst.ProcessName + " [start|stop|restart]")
|
||||
app.Run(func() {
|
||||
apis.NewAPINode().Start()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user