Files
TaskPool/cmd/cmd.go
T
duorameng 323a58e041 feat: implement custom WebUI support with dynamic frontend replacement
- Add WebUI service and controller for managing custom frontend packages

- Allow overriding default static assets when custom WebUI is activated

- Add Make commands for packing custom WebUI distributions

- Update UI settings to support uploading, activating and deleting WebUIs

- Document WebUI feature in README and changelog
2026-05-29 11:50:09 +08:00

26 lines
766 B
Go

package cmd
import (
"github.com/engigu/baihu-panel/cmd/builtininstall"
"github.com/engigu/baihu-panel/cmd/reposync"
"github.com/engigu/baihu-panel/cmd/resetpwd"
"github.com/engigu/baihu-panel/cmd/restore"
"github.com/engigu/baihu-panel/cmd/task"
"github.com/engigu/baihu-panel/cmd/webui"
// "github.com/engigu/baihu-panel/cmd/migrate"
)
// CommandHandler 定义命令执行函数
type CommandHandler func(args []string)
// Handlers 维护了除了 server 之外的命令的执行入口
var Handlers = map[string]CommandHandler{
"reposync": reposync.Run,
"resetpwd": resetpwd.Run,
"restore": restore.Run,
"builtininstall": builtininstall.Run,
"task": task.Run,
"webui": webui.Run,
// "migrate": migrate.Run,
}