阶段性提交

This commit is contained in:
刘祥超
2020-07-22 22:17:53 +08:00
parent f2384a3ae8
commit 23cca702b4
85 changed files with 3419 additions and 76 deletions

View File

@@ -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()
})
}