aoc-automation
Version:
Advent of Code tool to automate the repetitive parts of AoC.
16 lines (15 loc) • 386 B
JavaScript
import { spawnSync } from "child_process";
import kleur from "kleur";
const runSolution = (day, path) => {
console.log(kleur.blue(`
-- Day ${day} `.padEnd(40, "-") + "\n"));
spawnSync("node", [path], {
stdio: "inherit",
shell: true
});
console.log(kleur.blue("\n".padEnd(40, "-")));
};
var runSolution_default = runSolution;
export {
runSolution_default as default
};