UNPKG

765 BPlain TextView Raw
1// tslint:disable-next-line: no-submodule-imports
2import 'dotenv/config';
3
4process.on('unhandledRejection', err => {
5 // tslint:disable-next-line: no-console
6 console.error('Unhandled Rejection', err);
7 process.exit(1);
8});
9
10export * from './types';
11export * from './Cli';
12
13// import { Cli } from './Cli';
14// import { CliOptions } from './types';
15
16// import * as prettyjson from 'prettyjson';
17// import * as fs from 'fs';
18// import { def } from './testDef';
19// const cli = new Cli(def, '1.0.0', { showPrompts: false });
20// // const parsed = cli.parse();
21// // console.log(prettyjson.render(parsed));
22// cli.start().then(result => {
23// fs.writeFileSync('parsed.txt', JSON.stringify(result.parsedCommand, undefined, 3));
24
25// });