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 }