feat: add cmd task call

This commit is contained in:
duorameng
2026-05-13 17:17:50 +08:00
parent da2b003b83
commit f498c4fcd5
13 changed files with 619 additions and 58 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func main() {
}
if handler, ok := cmd.Handlers[commandName]; ok {
bootstrap.InitBasic() // 启动基础环境(配置和数据库)
bootstrap.InitBasicForCmd() // 专为命令行工具定制启动基础环境,屏蔽后台启动刷屏日志
handler(os.Args[2:])
return
}