server/cli/base.ts
2024-06-26 13:11:39 -10:00

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);
}
}