(o)
| 50 | const [, , specPath] = process.argv; |
| 51 | |
| 52 | function emit(o) { process.stdout.write(JSON.stringify(o) + '\n'); } |
| 53 | |
| 54 | if (!specPath) { emit({ status: 'error', error: 'no spec path' }); process.exit(0); } |
| 55 | const spec = JSON.parse(readFileSync(specPath, 'utf8')); |