mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
30 lines
613 B
Go
30 lines
613 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/TeaOSLab/EdgeNode/internal/apps"
|
|
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
|
|
"github.com/TeaOSLab/EdgeNode/internal/nodes"
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
)
|
|
|
|
func main() {
|
|
app := apps.NewAppCmd().
|
|
Version(teaconst.Version).
|
|
Product(teaconst.ProductName).
|
|
Usage(teaconst.ProcessName + " [-v|start|stop|restart|sync|update]")
|
|
|
|
app.On("sync", func() {
|
|
// TODO
|
|
fmt.Println("not implemented yet")
|
|
})
|
|
app.On("update", func() {
|
|
// TODO
|
|
fmt.Println("not implemented yet")
|
|
})
|
|
app.Run(func() {
|
|
node := nodes.NewNode()
|
|
node.Start()
|
|
})
|
|
}
|