chore: 添加命令说明,去除url移除
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user