Comparing version 0.0.16-dev to 0.0.17-dev
@@ -13,3 +13,13 @@ "use strict"; | ||
.parse(process.argv); | ||
var wait = program.wait, token = program.token, loadTest = program.loadTest, _a = program.args, file = _a[0], parameters = _a.slice(1); | ||
var wait = program.wait, token = program.token, loadTest = program.loadTest, _a = program.args, file = _a[0], rawParams = _a.slice(1); | ||
var parameters = {}; | ||
rawParams.forEach(function (pair) { | ||
var pivot = pair.indexOf('='); | ||
if (pivot <= 0) { | ||
console.error("Invalid parameter assignment:", pair); | ||
program.help(); | ||
} | ||
var name = pair.slice(0, pivot); | ||
parameters[name] = pair.slice(pivot + 1, pair.length); | ||
}); | ||
console.log("Input:", { | ||
@@ -16,0 +26,0 @@ file: file, |
{ | ||
"name": "loadmill", | ||
"version": "0.0.16-dev", | ||
"version": "0.0.17-dev", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -19,5 +19,18 @@ import * as program from 'commander'; | ||
loadTest, | ||
args: [file, ...parameters] | ||
args: [file, ...rawParams] | ||
} = program; | ||
const parameters: {[key: string]: string} = {}; | ||
rawParams.forEach(pair => { | ||
const pivot = pair.indexOf('='); | ||
if (pivot <= 0) { | ||
console.error("Invalid parameter assignment:", pair); | ||
program.help(); | ||
} | ||
const name = pair.slice(0, pivot); | ||
parameters[name] = pair.slice(pivot + 1, pair.length); | ||
}); | ||
console.log("Input:", { | ||
@@ -24,0 +37,0 @@ file, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24701
373