feat: enhance help inform structure and update command descriptions across various handlers
This commit is contained in:
@@ -13,9 +13,9 @@ import (
|
||||
|
||||
func init() {
|
||||
handler.RegisterHandler("exec", runInDocker, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("exec", "执行命令")
|
||||
handler.RegisterHelpInform("exec", "docker", "exec <command> 执行命令")
|
||||
handler.RegisterHandler("reboot", restartDocker, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("reboot", "重启环境")
|
||||
handler.RegisterHelpInform("reboot", "docker", "reboot 重启环境")
|
||||
}
|
||||
|
||||
func runInDocker(msg model.Message) (reply model.Reply) {
|
||||
|
||||
Reference in New Issue
Block a user