"feat: 升级本地应用管理依赖,新增应用删除功能及强制覆盖下载选项"

This commit is contained in:
2025-05-17 15:53:06 +08:00
parent 035ddc248c
commit e9eedcd1bd
9 changed files with 99 additions and 18 deletions

View File

@@ -34,6 +34,8 @@ const downloadAppCommand = new Command('download')
.option('-o, --output <output>', '下载 app serve client的包, 输出路径, 默认是当前目录')
.option('-t, --type <type>', '下载 app serve client的包, 类型, app或者web 默认为web')
.option('-r, --registry <registry>', '下载 app serve client的包, 使用私有源')
.option('-f, --force ', '强制覆盖')
.option('-y, --yes ', '覆盖的时候不提示')
.action(async (options) => {
const id = options.id || '';
const output = options.output || '';
@@ -79,6 +81,8 @@ const downloadAppCommand = new Command('download')
appDir: output,
kevisualUrl: registry,
appType: appType,
force: options.force,
yes: options.yes,
});
if (result.code === 200) {
console.log(chalk.green('下载成功', res.data?.user, res.data?.key));