feat(api): add local repl console

Based on the REPL from NestJS 9
This commit is contained in:
Julian Tölle 2022-07-12 21:09:41 +02:00
parent 99cc06bbbc
commit 0a9956e1ae
3 changed files with 41 additions and 1 deletions

11
src/console.ts Normal file
View file

@ -0,0 +1,11 @@
import { repl } from "@nestjs/core";
import { AppModule } from "./app.module";
import { otelSDK } from "./open-telemetry/sdk";
async function bootstrap() {
await otelSDK.start();
// TODO: Disable scheduled tasks from SourcesModule when in repl mode
await repl(AppModule);
}
bootstrap();