feat: enhance help inform structure and update command descriptions across various handlers

This commit is contained in:
lixiangwuxian
2024-12-26 11:35:34 +08:00
parent 48dd4b17de
commit a79991c4ff
18 changed files with 66 additions and 41 deletions

View File

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