1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 08:07:30 +00:00

Clean up console output

This commit is contained in:
Cadence Ember 2020-05-29 20:45:34 +12:00
parent 72c8a9dca6
commit bec1b9d207
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 5 additions and 3 deletions

View File

@ -29,5 +29,7 @@ function customWriter(output) {
return output
}
console.log("REPL started")
setTimeout(() => {
console.log("[.] REPL started")
repl.start({prompt: "b) ", eval: customEval, writer: customWriter}).once("exit", () => process.exit())
}, 2000) // wait for pinski to initialise. TODO: do this properly

View File

@ -54,7 +54,7 @@ subdirs("pug", async (err, dirs) => {
Object.assign(passthrough, pinski.getExports())
console.log("Server started")
console.log("[.] Server started")
if (process.stdin.isTTY || process.argv.includes("--enable-repl")) {
require("./repl")