All files caporal.ts

70% Statements 7/10
100% Branches 0/0
0% Functions 0/1
70% Lines 7/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  1x 1x 1x 1x 1x 1x                 1x      
import * as caporal from 'caporal';
import { readFileSync } from 'jsonfile';
import * as path from 'path';
 
const pkg = readFileSync(path.normalize(path.join(__dirname, '../package.json')));
 
caporal
  .version(pkg.version)
  .description(pkg.description)
 
  .command('example', 'hello world')
  .action((args, options, logger) => {
    logger.info('Command \'example\' called with:');
    logger.info('arguments: %j', args);
    logger.info('options: %j', options);
  });
 
export default caporal;