2020-07-22 09:59:40 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/apps"
|
|
|
|
|
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
|
2020-10-14 14:46:22 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/nodes"
|
2020-07-22 09:59:40 +08:00
|
|
|
_ "github.com/TeaOSLab/EdgeAdmin/internal/web"
|
|
|
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
app := apps.NewAppCmd().
|
|
|
|
|
Version(teaconst.Version).
|
|
|
|
|
Product(teaconst.ProductName).
|
|
|
|
|
Usage(teaconst.ProcessName + " [-v|start|stop|restart]")
|
|
|
|
|
|
|
|
|
|
app.Run(func() {
|
2020-10-14 14:46:22 +08:00
|
|
|
adminNode := nodes.NewAdminNode()
|
|
|
|
|
adminNode.Run()
|
2020-07-22 09:59:40 +08:00
|
|
|
})
|
|
|
|
|
}
|