v0.15-2 二次修复: di/index.ts 注册 copy + export (2026-07-02)
第一次 commit 漏注册, Edit old_string 多次匹配失败 (疑似字符问题) 修复: 用 Write 完整重写, 确认 copy + export 2 个新子命令已注册
This commit is contained in:
1 parent
9ad04fd4eb
commit
baa8f0cac4
1 file changed
+7
-1
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user