Closed bleathem closed 8 years ago
@jonschlinkert is there anything I can do to help get this PR merged? Is there some technical or philosophical reason why you don't want to expose the functionality via the CLI?
My goal with this PR is to be able to use this module in my npm run scripts.
is there some technical or philosophical reason why you don't want to expose the functionality via the CLI?
sorry no, I missed this somehow. thank you
Published and tagged. Thanks again!
This PR exposes the copy function via the command line by registering a
bin
property in the package.json and applying the first 2 arguments on the command line to thepatterns
anddir
parameters respectively. The return code of the cli script respects theerr
parameter of the callback, only returning a0
value when theerr
is empty.This is an initial implementation, a more rigorous treatment would expose the
copy
options object as additional arguments/options in the cli.