Select Git revision
UserCommand.ts
UserCommand.ts 646 B
import CommanderCommand from '../CommanderCommand';
import UserChangeRoleCommand from './subcommands/UserChangeRoleCommand';
import UserListCommand from './subcommands/UserListCommand';
class UserCommand extends CommanderCommand {
protected commandName: string = 'user';
protected defineCommand() {
this.command
.description('manage user');
}
protected defineSubCommands() {
UserListCommand.registerOnCommand(this.command);
UserChangeRoleCommand.registerOnCommand(this.command);
}
protected async commandAction(): Promise<void> { }
}
export default new UserCommand();