How to use the url function from commander
Find comprehensive JavaScript commander.url code examples handpicked from public code repositorys.
GitHub: tedeh/jayson
41 42 43 44 45 46 47 48 49 50
return process.exit(-1); } const client = (program.socket && program.socket.host) ? jayson.client.tcp(program.socket) : (program.url && program.url.protocol == 'https:') ? jayson.client.https(program.url || program.socket) : jayson.client.http(program.url || program.socket); std.out.noise(
126
688
0
27 28 29 30 31 32 33 34 35 36
// validate url and file helpers.validateUrlAndFile(program); // init client var client = new elasticsearch.Client({ hosts: program.url.split(',') }); // build our params object var params = {}; for (key in esOptions) {
45
191
18
+ 13 other calls in file
69 70 71 72 73 74 75 76 77 78
if (program.dataConfig) { checkExists(program.dataConfig, 'Common config directory') process.env.COMMON_DATA_CONFIG = program.dataConfig } process.env.API_SERVER_URL = program.url let options = {} if(program.report) { options.reporter = 'mochawesome'
4
7
7
+ 3 other calls in file
GitHub: k3dt/sugar
662 663 664 665 666 667 668 669 670 671
const cucumberG = require('gulp-cucumber'); commander .option('--url <url>', 'URL of Sugar instance under test') .option('--tags <tags>', 'Tags to run') .parse(process.argv); let url = commander.url; if (!url) { console.log('Instance URL must be specified'); return -1; }
1
0
0
+ 3 other calls in file
37 38 39 40 41 42 43 44 45
//if (!program.environment) { // console.log( 'Deployment environment not specified. Using default \'test\'. Use the -e command line argument '); //} var mode = program.mode.toLowerCase(); var url = program.url; var token = program.token; var datadir = program.dir; var environment = program.environment ? program.environment : 'test';
1
0
3
commander.Option is the most popular function in commander (1786 examples)