import {runAll,runScene} from './scenarios.mjs';
const id=process.argv[2];
try { for(const scene of id?[await runScene(id)]:await runAll())for(const row of scene.records)process.stdout.write(JSON.stringify({scene:scene.id,...row})+'\n'); }
catch(err){process.stderr.write(err.message+'\n');process.exitCode=1;}
