mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 18:50:27 +08:00
去掉未实现的命令参数
This commit is contained in:
@@ -17,7 +17,7 @@ func main() {
|
|||||||
app := apps.NewAppCmd().
|
app := apps.NewAppCmd().
|
||||||
Version(teaconst.Version).
|
Version(teaconst.Version).
|
||||||
Product(teaconst.ProductName).
|
Product(teaconst.ProductName).
|
||||||
Usage(teaconst.ProcessName + " [-v|start|stop|restart|quit|sync|update|test]")
|
Usage(teaconst.ProcessName + " [-v|start|stop|restart|quit|test]")
|
||||||
|
|
||||||
app.On("test", func() {
|
app.On("test", func() {
|
||||||
err := nodes.NewNode().Test()
|
err := nodes.NewNode().Test()
|
||||||
@@ -25,14 +25,6 @@ func main() {
|
|||||||
_, _ = os.Stderr.WriteString(err.Error())
|
_, _ = os.Stderr.WriteString(err.Error())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
app.On("sync", func() {
|
|
||||||
// TODO
|
|
||||||
fmt.Println("not implemented yet")
|
|
||||||
})
|
|
||||||
app.On("update", func() {
|
|
||||||
// TODO
|
|
||||||
fmt.Println("not implemented yet")
|
|
||||||
})
|
|
||||||
app.On("quit", func() {
|
app.On("quit", func() {
|
||||||
pidFile := Tea.Root + "/bin/pid"
|
pidFile := Tea.Root + "/bin/pid"
|
||||||
data, err := ioutil.ReadFile(pidFile)
|
data, err := ioutil.ReadFile(pidFile)
|
||||||
|
|||||||
Reference in New Issue
Block a user