How to use the source function from yargs
Find comprehensive JavaScript yargs.source code examples handpicked from public code repositorys.
GitHub: iTwin/itwinjs-core
19 20 21 22 23 24 25 26 27 28 29 30
// terminate the Node.js process with a non-zero exit code. process.on("unhandledRejection", err => { throw err; }); const source = (argv.source === undefined) ? paths.appSrc : argv.source; const out = (argv.out === undefined) ? paths.appDocs : argv.out; const json = (argv.json === undefined) ? paths.appJsonDocs : argv.json; const baseUrlOptions = (argv.baseUrl === undefined) ? [] : ["--baseUrl", argv.baseUrl];
193
513
0
+ 4 other calls in file
362 363 364 365 366 367 368 369 370 371 372
// // Codelabs // // codelabs:export exports the codelabs gulp.task('codelabs:export', (callback) => { const source = args.source; if (source !== undefined) { const sources = Array.isArray(source) ? source : [source]; claat.run(CODELABS_DIR, 'export', CODELABS_ENVIRONMENT, CODELABS_FORMAT, DEFAULT_GA, sources, callback);
2
9
1
+ 4 other calls in file
yargs.argv is the most popular function in yargs (1012 examples)