diff --git a/index.ts b/index.ts index 2482ad7..7d48e50 100644 --- a/index.ts +++ b/index.ts @@ -10,6 +10,7 @@ import { DateTime } from "luxon" import fs from "node:fs" import { jsonOut, csvOut, sum, runCommands, getXdgConfigHome } from "./util.js" import path from "node:path" +import repl from "node:repl" type QuantityDecorator = { type: "QUANTITY" @@ -133,6 +134,9 @@ const commands = (argv: ParsedArgs) => { } } }, + repl() { + repl.start().context.p = p + } } }