mirror of
https://github.com/tnb-labs/panel.git
synced 2026-08-29 02:10:58 +08:00
e8f7811aba
website create 未传网站类型导致必然失败,补全类型、代理地址、 数据库、备注等参数,并在进入 biz 层前统一走验证器校验。 新增命令: - firewall status/on/off/list/port - cert list/renew - restore panel - website cert/list,user create/delete - backup list,app list,cron list/run/status - database list-server 调整: - 密码取值改为参数 > ACEPANEL_PASSWORD > 交互输入(不回显) - 补 bind-domain/bind-ip/bind-ua 的 on 子命令 - 新增全局 --json,接入全部 list 命令 - port 支持 flag 写法,info 支持 -u 指定用户 - 位置参数命令补 ArgsUsage 修复: - cutoff clear 清理远程日志时目录与上传路径不一致,导致远程切割 日志从未被清理,ClearStorageExpired 改为接收目标目录 - restore 缺少 panel 分支,从 FixPanel 抽出 restorePanel 复用 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
46 lines
1.2 KiB
Go
46 lines
1.2 KiB
Go
package command
|
|
|
|
import (
|
|
"github.com/google/wire"
|
|
"github.com/leonelquinteros/gotext"
|
|
"github.com/urfave/cli/v3"
|
|
|
|
"github.com/acepanel/panel/v3/internal/service"
|
|
)
|
|
|
|
var ProviderSet = wire.NewSet(Commands)
|
|
|
|
// Commands 组装全部 CLI 命令。
|
|
func Commands(t *gotext.Locale, cliService *service.CliService) []*cli.Command {
|
|
return []*cli.Command{
|
|
StatusCommand(t, cliService),
|
|
RestartCommand(t, cliService),
|
|
StopCommand(t, cliService),
|
|
StartCommand(t, cliService),
|
|
UpdateCommand(t, cliService),
|
|
SyncCommand(t, cliService),
|
|
FixCommand(t, cliService),
|
|
InfoCommand(t, cliService),
|
|
PortCommand(t, cliService),
|
|
SyncTimeCommand(t, cliService),
|
|
ClearTaskCommand(t, cliService),
|
|
InitCommand(t, cliService),
|
|
UserCommand(t, cliService),
|
|
HttpsCommand(t, cliService),
|
|
EntranceCommand(t, cliService),
|
|
BindDomainCommand(t, cliService),
|
|
BindIPCommand(t, cliService),
|
|
BindUACommand(t, cliService),
|
|
FirewallCommand(t, cliService),
|
|
WebsiteCommand(t, cliService),
|
|
CertCommand(t, cliService),
|
|
DatabaseCommand(t, cliService),
|
|
BackupCommand(t, cliService),
|
|
RestoreCommand(t, cliService),
|
|
CutoffCommand(t, cliService),
|
|
CronCommand(t, cliService),
|
|
AppCommand(t, cliService),
|
|
SettingCommand(t, cliService),
|
|
}
|
|
}
|