chore: 添加命令说明,去除url移除

This commit is contained in:
lixiangwuxian
2024-12-11 23:27:41 +08:00
parent be37dcc1fd
commit 1f7b082e02
2 changed files with 5 additions and 3 deletions

View File

@@ -12,8 +12,10 @@ import (
)
func init() {
handler.RegisterHandler("exec", runInDocker, constants.LEVEL_TRUSTED)
handler.RegisterHandler("reboot", restartDocker, constants.LEVEL_TRUSTED)
handler.RegisterHandler("exec", runInDocker, constants.LEVEL_USER)
handler.RegisterHelpInform("exec", "执行命令")
handler.RegisterHandler("reboot", restartDocker, constants.LEVEL_USER)
handler.RegisterHelpInform("reboot", "重启环境")
}
func runInDocker(msg model.Message) (reply model.Reply) {