UNPKG

chutzpah-watch

Version:
27 lines 950 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yargs = require("yargs"); const fs_1 = require("fs"); const watch_testfiles_1 = require("./watch-testfiles"); const y = yargs .usage('Usage: chutzpah <command> [options]') .option('config', { alias: 'c', describe: 'chutzpah-watch cli options', demandOption: true, }) .demandOption(['config'], 'Please provide config argument to work with this tool') .config('config', (configPath) => JSON.parse(fs_1.readFileSync(configPath, 'utf-8'))) .command({ command: 'watch', describe: 'run tests in watch mode', handler: (argv) => { watch_testfiles_1.run(argv); }, aliases: ['w'], }) .example('chutzpah watch --config chuzpah-wath.json', 'running chutzpah-watch and reading cli options from given config file') .help() .argv; //# sourceMappingURL=index.js.map