- index.ts: 注册 14 个新子命令 (update/unlock/batch-state/batch-delete/ get-position/set-position/batch-set-position/workHandover/socials-unbind/ online-kick/changepwd/baseinfo/auth-groups/auth-list) - delete.ts: exit(2) → exit(1) 避免 AI 误判为崩溃 - 14 个占位 .ts 文件 (后续 Task 逐个实现)
16 lines
493 B
TypeScript
16 lines
493 B
TypeScript
/**
|
|
* commands/user/set-position.ts — 占位, Task 9 实现
|
|
*/
|
|
import { Command } from 'commander'
|
|
import { log } from '../../core/log.ts'
|
|
import { installAiHelpHook } from '../../core/help.ts'
|
|
|
|
export function buildUserSetPositionCommand(): Command {
|
|
const cmd = new Command('set-position').description('TODO: implement in Task 9')
|
|
cmd.action(async () => {
|
|
log.warn('TODO: implement in Task 9')
|
|
process.exit(1)
|
|
})
|
|
installAiHelpHook(cmd, { purpose: 'TODO' })
|
|
return cmd
|
|
} |