Add repl subcommand
parent
1bfdb788ed
commit
0394de3755
4
index.ts
4
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue