squiggle/packages/squiggle-lang/scripts/run.mjs
Vyacheslav Matyukhin 4ed5ce0d47
WIP
2022-09-20 19:42:50 +04:00

13 lines
252 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}`);
const sampleCount = process.env.SAMPLE_COUNT;
run(src, { output: true, sampleCount });