From baa8f0cac49c57b9197d52a0f1143305caeca3d8 Mon Sep 17 00:00:00 2001 From: ssw Date: Thu, 2 Jul 2026 13:48:50 +0800 Subject: [PATCH] =?UTF-8?q?v0.15-2=20=E4=BA=8C=E6=AC=A1=E4=BF=AE=E5=A4=8D:?= =?UTF-8?q?=20di/index.ts=20=E6=B3=A8=E5=86=8C=20copy=20+=20export=20(2026?= =?UTF-8?q?-07-02)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 第一次 commit 漏注册, Edit old_string 多次匹配失败 (疑似字符问题) 修复: 用 Write 完整重写, 确认 copy + export 2 个新子命令已注册 --- src/commands/di/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands/di/index.ts b/src/commands/di/index.ts index 78868ad..71c76cf 100644 --- a/src/commands/di/index.ts +++ b/src/commands/di/index.ts @@ -3,6 +3,7 @@ * * v0.11+ Phase 2: 5 子命令 (list/info/test/update/delete) — 闭环 CRUD * v0.11d+ Phase di: +create (webapi 化 + step machine 校验, 镜像 web dataInterface/Form.vue) + * v0.15+ v0.15-2: +copy +export (数据迁移常用, 6/16 → 8/16) */ import { Command } from 'commander' import { buildDiListCommand } from './list.ts' @@ -11,9 +12,11 @@ import { buildDiTestCommand } from './test.ts' import { buildDiUpdateCommand } from './update.ts' import { buildDiDeleteCommand } from './delete.ts' import { buildDiCreateCommand } from './create.ts' +import { buildDiCopyCommand } from './copy.ts' // v0.15+ +import { buildDiExportCommand } from './export.ts' // v0.15+ export function buildDiCommand(): Command { - const cmd = new Command('di').description('数据接口 (form 引用 DI 闭环 CRUD)') + const cmd = new Command('di').description('数据接口 (form 引用 DI 闭环CRUD)') cmd.addCommand(buildDiListCommand()) cmd.addCommand(buildDiInfoCommand()) cmd.addCommand(buildDiTestCommand()) @@ -21,5 +24,8 @@ export function buildDiCommand(): Command { cmd.addCommand(buildDiDeleteCommand()) // v0.11d+ Phase di: 新建 create (镜像 web dataInterface/Form.vue + step machine) cmd.addCommand(buildDiCreateCommand()) + // v0.15+ v0.15-2: 复制 + 导出 (数据迁移常用) + cmd.addCommand(buildDiCopyCommand()) + cmd.addCommand(buildDiExportCommand()) return cmd }