feat: add resetpwd cmd

This commit is contained in:
engigu
2026-02-27 23:08:44 +08:00
parent 8775bec155
commit d9e73a9d18
10 changed files with 206 additions and 16 deletions
+23
View File
@@ -0,0 +1,23 @@
package constant
// CommandInfo 定义了终端可用命令的说明信息
type CommandInfo struct {
Name string
Description string
}
// Commands 是系统的可用业务命令说明列表
var Commands = []CommandInfo{
// {
// Name: "server",
// Description: "启动后台服务进程",
// },
{
Name: "reposync",
Description: "同步远程 Git 仓库或文件到本地",
},
{
Name: "resetpwd",
Description: "重置 admin 用户密码(需要二次确认)",
},
}