28 lines
843 B
TypeScript
28 lines
843 B
TypeScript
/**
|
|
* commands/user/index.ts — user 父命令
|
|
*
|
|
* JNPF 用户 (permission/user)
|
|
*
|
|
* 决策 7: 用户是 P1 权限三角 2 号 (必须绑组织)
|
|
*
|
|
* 子命令:
|
|
* list 列表
|
|
* create 新建
|
|
* delete 删除
|
|
* reset-pwd 重置密码
|
|
*/
|
|
import { Command } from 'commander'
|
|
import { buildUserListCommand } from './list.ts'
|
|
import { buildUserCreateCommand } from './create.ts'
|
|
import { buildUserDeleteCommand } from './delete.ts'
|
|
import { buildUserResetPwdCommand } from './reset-pwd.ts'
|
|
|
|
export function buildUserCommand(): Command {
|
|
const cmd = new Command('user').description('用户 (P1 权限三角 2 号, 登录主体)')
|
|
cmd.addCommand(buildUserListCommand())
|
|
cmd.addCommand(buildUserCreateCommand())
|
|
cmd.addCommand(buildUserDeleteCommand())
|
|
cmd.addCommand(buildUserResetPwdCommand())
|
|
return cmd
|
|
}
|