squiggle/packages/squiggle-lang/scripts/run.mjs
Vyacheslav Matyukhin 8e396c44f9
refactor scripts
2022-09-20 00:57:20 +04:00

11 lines
174 B
JavaScript
Executable File

#!/usr/bin/env node
import { run } from "./lib.mjs";
const src = process.argv[2];
if (!src) {
throw new Error("Expected src");
}
console.log(`Running ${src}`);
run(src);