UNPKG

774 BPlain TextView Raw
1// tslint:disable-next-line: no-submodule-imports
2// import '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 { dynamicProg } from './testDef';
18// const cli = new Cli(dynamicProg, '1.0.0', { showPrompts: false });
19// // const parsed = cli.parse();
20// // console.log(prettyjson.render(parsed));
21// cli.start().then(result => {
22// // fs.writeFileSync('parsed.txt', JSON.stringify(result.parsedCommand, undefined, 3));
23// debugger
24
25// });