去掉未实现的命令参数

This commit is contained in:
GoEdgeLab
2020-10-28 11:21:45 +08:00
parent 4216f54ad3
commit ee3edece00

View File

@@ -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)