wiremock-rest-client
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -6,6 +6,10 @@ #!/usr/bin/env node | ||
function commaSeparatedList(value) { | ||
return value.split(','); | ||
} | ||
program | ||
.version(version) | ||
.command('load') | ||
.requiredOption('-f, --folder <folder>', 'Folder containing stub mappings to be loaded') | ||
.requiredOption('-f, --folders <folders>', 'Comma separated list of folders containing stub mappings to be loaded', commaSeparatedList) | ||
.option('--no-reset', 'Skip resetting all stub mappings') | ||
@@ -20,5 +24,7 @@ .option('-u, --uri [uri]', 'WireMock base URI', 'http://localhost:8080') | ||
await wireMock.mappings.createMappingsFromDir(args.folder); | ||
return Promise.all( | ||
args.folders.map((folder) => wireMock.mappings.createMappingsFromDir(folder)) | ||
); | ||
}); | ||
program.parseAsync(process.argv); |
{ | ||
"name": "wiremock-rest-client", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Lightweight REST client to interact with a running WireMock server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -196,6 +196,6 @@ # WireMock REST Client | ||
Options: | ||
-f, --folder <folder> Folder containing stub mappings to be loaded | ||
--no-reset Skip resetting all stub mappings | ||
-u, --uri [uri] WireMock base URI (default: "http://localhost:8080") | ||
-h, --help display help for command | ||
-f, --folders <folders> Comma separated list of folders containing stub mappings to be loaded | ||
--no-reset Skip resetting all stub mappings | ||
-u, --uri [uri] WireMock base URI (default: "http://localhost:8080") | ||
-h, --help display help for command | ||
``` |
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
55800
1346