squiggle/packages/squiggle-lang/scripts/run.mjs

13 lines
252 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
2022-09-19 20:55:32 +00:00
import { run } from "./lib.mjs";
const src = process.argv[2];
if (!src) {
throw new Error("Expected src");
}
console.log(`Running ${src}`);
2022-09-20 16:54:26 +00:00
const sampleCount = process.env.SAMPLE_COUNT;
run(src, { output: true, sampleCount });