()
| 78 | } |
| 79 | |
| 80 | function testCLI() { |
| 81 | console.log(`* CLI sanity check`); |
| 82 | const qt = args => exec(`node dist/cli.js ${args}`); |
| 83 | |
| 84 | console.log("* Ensure we can quicktype a URL"); |
| 85 | qt(`https://blockchain.info/latestblock`); |
| 86 | } |
| 87 | |
| 88 | // skip 2 `node` args |
| 89 | main(process.argv.slice(2)).catch(reason => { |