mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
22 lines
504 B
Go
22 lines
504 B
Go
package main
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/apps"
|
|
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/nodes"
|
|
_ "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() {
|
|
adminNode := nodes.NewAdminNode()
|
|
adminNode.Run()
|
|
})
|
|
}
|