UNPKG

auron

Version:

Interact with your ATProto labeler from your terminal

17 lines (16 loc) 561 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dbCommand = void 0; const commander_1 = require("commander"); const db_1 = require("../services/db"); const loader_1 = require("../utils/loader"); exports.dbCommand = new commander_1.Command("db"); exports.dbCommand .command("clear") .description("Reset your local database") .action(async () => { (0, loader_1.withLoader)(`Clearing database...`, async (logMessage) => { await db_1.database.clear(); logMessage("Database cleared"); }); });