UNPKG

auron

Version:

Interact with your ATProto labeler from your terminal

16 lines (13 loc) 415 B
import { Command } from "commander"; import { database } from "../services/db"; import { withLoader } from "../utils/loader"; export const dbCommand = new Command("db"); dbCommand .command("clear") .description("Reset your local database") .action(async () => { withLoader(`Clearing database...`, async (logMessage) => { await database.clear(); logMessage("Database cleared"); }); });