fix(v0.11+): dict index.ts 注册 4 个 NEW-CMD (typeUpdate/typeDelete/dataUpdate/dataDelete)
之前 commit d31fa51 只加 4 个文件但未注册到 index.ts
本 commit 注册到 dict 父命令, 累计 dict 8 子命令 (从 4 → 8)
Co-Authored-By: Claude <[email protected]>
This commit is contained in:
1 parent
d31fa51c38
commit
7c1bebd0f5
1 file changed
+21
-3
@@ -1,17 +1,35 @@
|
||||
/**
|
||||
* commands/dict/index.ts — dict 父命令
|
||||
*
|
||||
* v0.11+ Phase 2: 8 子命令 (闭环 CRUD)
|
||||
* typeList 字典类型列表
|
||||
* typeCreate 字典类型创建
|
||||
* typeUpdate 字典类型修改 (P0 v0.11+)
|
||||
* typeDelete 字典类型删除 (P0 v0.11+)
|
||||
* dataList 字典项列表
|
||||
* dataCreate 字典项创建
|
||||
* dataUpdate 字典项修改 (P0 v0.11+)
|
||||
* dataDelete 字典项删除 (P0 v0.11+)
|
||||
*/
|
||||
import { Command } from 'commander'
|
||||
import { buildDictTypeListCommand } from './typelist.ts'
|
||||
import { buildDictDataListCommand } from './datalist.ts'
|
||||
import { buildDictTypeCreateCommand } from './typecreate.ts'
|
||||
import { buildDictTypeUpdateCommand } from './typeupdate.ts'
|
||||
import { buildDictTypeDeleteCommand } from './typedelete.ts'
|
||||
import { buildDictDataListCommand } from './datalist.ts'
|
||||
import { buildDictDataCreateCommand } from './datacreate.ts'
|
||||
import { buildDictDataUpdateCommand } from './dataupdate.ts'
|
||||
import { buildDictDataDeleteCommand } from './datadelete.ts'
|
||||
|
||||
export function buildDictCommand(): Command {
|
||||
const cmd = new Command('dict').description('字典管理 (类型 + 数据)')
|
||||
const cmd = new Command('dict').description('字典管理 (类型 + 数据, 闭环 CRUD)')
|
||||
cmd.addCommand(buildDictTypeListCommand())
|
||||
cmd.addCommand(buildDictDataListCommand())
|
||||
cmd.addCommand(buildDictTypeCreateCommand())
|
||||
cmd.addCommand(buildDictTypeUpdateCommand())
|
||||
cmd.addCommand(buildDictTypeDeleteCommand())
|
||||
cmd.addCommand(buildDictDataListCommand())
|
||||
cmd.addCommand(buildDictDataCreateCommand())
|
||||
cmd.addCommand(buildDictDataUpdateCommand())
|
||||
cmd.addCommand(buildDictDataDeleteCommand())
|
||||
return cmd
|
||||
}
|
||||
Reference in new issue
Block a user