2020-07-21 17:27:00 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/TeaOSLab/EdgeAPI/internal/apis"
|
2020-07-22 22:17:53 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAPI/internal/apps"
|
|
|
|
|
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
|
2020-07-21 17:27:00 +08:00
|
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2020-07-22 22:17:53 +08:00
|
|
|
app := apps.NewAppCmd()
|
|
|
|
|
app.Version(teaconst.Version)
|
|
|
|
|
app.Product(teaconst.ProductName)
|
|
|
|
|
app.Usage(teaconst.ProcessName + " [start|stop|restart]")
|
|
|
|
|
app.Run(func() {
|
|
|
|
|
apis.NewAPINode().Start()
|
|
|
|
|
})
|
2020-07-21 17:27:00 +08:00
|
|
|
}
|