find-duplicate-strings
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -20,10 +20,14 @@ "use strict"; | ||
.option('-s, --silent', 'prevent CLI from printing messages through the console') | ||
.action(init) | ||
.parse(process.argv); | ||
function init({ silent, exclusions, extensions, threshold, args }) { | ||
.argument('path', 'path to scan') | ||
.action(main) | ||
.parse(); | ||
function main(path, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield new scanner_1.Scanner({ silent, exclusions, extensions, threshold, path: args[0] }).scan().catch((err) => { | ||
console.error(`Error: ${err.message}`); | ||
}); | ||
try { | ||
yield new scanner_1.Scanner(Object.assign(Object.assign({}, options), { path })).scan(); | ||
} | ||
catch (error) { | ||
throw error; | ||
} | ||
}); | ||
} |
{ | ||
"name": "find-duplicate-strings", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Easy to use CLI that finds duplicate strings in a directory and stores them in a external file for easy reference", | ||
@@ -5,0 +5,0 @@ "author": "Erwin Heitzman", |
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
849
42765