Comparing version 3.1.0 to 3.2.0
14
cli.js
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
'Usage', | ||
' $ cpy <source> <destination> [--no-overwrite]', | ||
' $ cpy <source> <destination> [--no-overwrite] [--parents] [--cwd <dir>]', | ||
'', | ||
@@ -15,3 +15,7 @@ 'Example', | ||
'', | ||
'<source> can contain globs if quoted' | ||
'Options', | ||
' --parents Preseve path structure', | ||
' --cwd <dir> Working directory for source files', | ||
'', | ||
'<source> can contain globs if quoted', | ||
].join('\n') | ||
@@ -34,5 +38,9 @@ }, { | ||
try { | ||
cpy([cli.input[0]], cli.input[1], {overwrite: cli.flags.overwrite}, errorHandler); | ||
cpy([cli.input[0]], cli.input[1], { | ||
cwd: cli.flags.cwd || process.cwd(), | ||
parents: cli.flags.parents, | ||
overwrite: cli.flags.overwrite | ||
}, errorHandler); | ||
} catch (err) { | ||
errorHandler(err); | ||
} |
{ | ||
"name": "cpy", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Copy files", | ||
"license": "MIT", | ||
"repository": "sindresorhus/cpy", | ||
"bin": { | ||
"cpy": "cli.js" | ||
}, | ||
"author": { | ||
@@ -22,2 +19,3 @@ "name": "Sindre Sorhus", | ||
], | ||
"bin": "cli.js", | ||
"engines": { | ||
@@ -34,4 +32,4 @@ "node": ">=0.10.0" | ||
"keywords": [ | ||
"cli-app", | ||
"cli", | ||
"bin", | ||
"copy", | ||
@@ -38,0 +36,0 @@ "cp", |
@@ -5,5 +5,5 @@ # cpy [![Build Status](https://travis-ci.org/sindresorhus/cpy.svg?branch=master)](https://travis-ci.org/sindresorhus/cpy) | ||
- Fast by using streams. | ||
- Resilient by using [graceful-fs](https://github.com/isaacs/node-graceful-fs). | ||
- User-friendly by accepting [globs](https://github.com/sindresorhus/globby#globbing-patterns) and creating non-existant destination directories. | ||
- Fast by using streams. | ||
- Resilient by using [graceful-fs](https://github.com/isaacs/node-graceful-fs). | ||
- User-friendly by accepting [globs](https://github.com/sindresorhus/globby#globbing-patterns) and creating non-existant destination directories. | ||
- User-friendly error messages. | ||
@@ -84,3 +84,3 @@ | ||
Usage | ||
$ cpy <source> <destination> [--no-overwrite] | ||
$ cpy <source> <destination> [--no-overwrite] [--parents] [--cwd <dir>] | ||
@@ -90,2 +90,6 @@ Example | ||
Options | ||
--parents Preseve path structure | ||
--cwd <dir> Working directory for source files | ||
<source> can contain globs if quoted | ||
@@ -92,0 +96,0 @@ ``` |
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
6344
97
104