mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
19 lines
502 B
TypeScript
19 lines
502 B
TypeScript
import { Logger, Module } from '@nestjs/common';
|
|
import { CommandFactory } from 'nest-commander';
|
|
|
|
import { PrismaModule } from '../prisma';
|
|
import { CreateCommand, NameQuestion } from './commands/create';
|
|
import { RevertCommand, RunCommand } from './commands/run';
|
|
|
|
@Module({
|
|
imports: [PrismaModule],
|
|
providers: [NameQuestion, CreateCommand, RunCommand, RevertCommand],
|
|
})
|
|
class AppModule {}
|
|
|
|
async function bootstrap() {
|
|
await CommandFactory.run(AppModule, new Logger());
|
|
}
|
|
|
|
await bootstrap();
|