gitpacker
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -18,7 +18,15 @@ #!/usr/bin/env node | ||
function appender (xs) { | ||
xs = xs || [] | ||
return function (x) { | ||
if (x && x.match(/[^:<>|"?\r\n]+/i)) xs.push(x) | ||
return xs | ||
} | ||
} | ||
program | ||
.version(pkg.version) | ||
.description('Compress files based on git ignore.') | ||
.option('-i, --include <files ...>', 'include files', /[^:<>|"?\r\n]+/i, null) | ||
.option('-e, --exclude <files ...>', 'exclude files', /[^:<>|"?\r\n]+/i, null) | ||
.option('-i, --include <files ..>', 'include files', appender(), []) | ||
.option('-e, --exclude <files ..>', 'exclude files', appender(), []) | ||
.option('--debug', 'debug mode, such as print error tracks', null, null) | ||
@@ -25,0 +33,0 @@ |
{ | ||
"name": "gitpacker", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A tool to quickly pack and compress git repository.", | ||
@@ -5,0 +5,0 @@ "preferGlobal": true, |
Sorry, the diff of this file is not supported yet
160569
427