mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 03:00:27 +08:00
去掉未实现的命令参数
This commit is contained in:
@@ -17,7 +17,7 @@ func main() {
|
||||
app := apps.NewAppCmd().
|
||||
Version(teaconst.Version).
|
||||
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() {
|
||||
err := nodes.NewNode().Test()
|
||||
@@ -25,14 +25,6 @@ func main() {
|
||||
_, _ = 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() {
|
||||
pidFile := Tea.Root + "/bin/pid"
|
||||
data, err := ioutil.ReadFile(pidFile)
|
||||
|
||||
Reference in New Issue
Block a user