mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
12 lines
339 B
TypeScript
12 lines
339 B
TypeScript
import { consoleLogger } from "@/loggers";
|
|
import { Command } from "@oclif/core";
|
|
import { setupDatabase } from "~/drizzle/db";
|
|
|
|
export abstract class BaseCommand<T extends typeof Command> extends Command {
|
|
protected async init(): Promise<void> {
|
|
await super.init();
|
|
|
|
await setupDatabase(consoleLogger, false);
|
|
}
|
|
}
|