auron
Version:
Interact with your ATProto labeler from your terminal
16 lines (15 loc) • 798 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.metricCommand = void 0;
const commander_1 = require("commander");
const metric_1 = require("../controllers/metric");
exports.metricCommand = new commander_1.Command("metric");
exports.metricCommand
.command("action-time")
.option("-f, --file <file>", "Export file path")
.option("--start <string>", "Only check action time for reports starting from a specific timestamp", (value) => new Date(value).toISOString())
.option("--end <string>", "Only check action time for reports before a specific timestamp", (value) => new Date(value).toISOString())
.description("Compute average action time for reports")
.action(async (options) => {
await (0, metric_1.computeActionTime)(options);
});