Git Product home page Git Product logo

cp-cli's Introduction

It's me, screendriver!

Usage

Via npx:

npx screendriver

Not including how to use it globally because I'm not sure why you'd want this as a global command. That'd be creepy.

cp-cli's People

Contributors

austinhyde avatar renovate-bot avatar screendriver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cp-cli's Issues

Copying into a folder doesn't work without specifying a filename in destination

On Windows, the following command works:

cp-cli README.md dist/my-lib/README.md

But the following commands don't work:

cp-cli README.md dist/my-lib/
cp-cli README.md dist/my-lib

According the docs the first one (with the slash) should work, but instead it gives the following error:

{ [Error: EPERM: operation not permitted, unlink 'C:\Projects\my-project\dist\my-lib']
  errno: -4048,
  code: 'EPERM',
  syscall: 'unlink',
  path:
   'C:\\Projects\\my-project\\dist\\my-lib' }

I solved this by adding the filename, but wanted to let you know. I don't know if this is also a problem on Unix systems.

Great work on this library by the way! cpx didn't want to copy a folder with assets and it hadn't been released for 3 years, so it's nice to see a fresh new copy library.

*nix-like behaviour when copying to a directory

Looks like a nice, helpful little tool for compatibility. I can see it's a small wrapper and you're not going for anything complex.

One small feature I feel would be useful, though, is being able to specify a directory as the destination. In Linux-land, at least, doing this copies the source files, maintaining their names, into the destination directory. cp-cli currently just complains in that use case.

Unable to copy directory content

Since 9ef3453 the command cp-cli srcdir destdir is copying srcdir directory as a subdirectory of destdir. Before the change this would result in copying the content of srcdir inside destdir.

I think an additional check if source is a directory is required on line #24

Deceiving library reliability

The module has a build status badge on green deceiving the public about the reliability of the package.
The only existing test :

describe('cp-cli', () => {
  it('should do anything', () => {
    expect(true).to.be.true();
  });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.