mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
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(false);
|
|
}
|
|
}
|