New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplify API for --parents option #21
Comments
Saving some characters would be nice, but how cumbersome would be the
|
|
@guillaumevincent What about this:
Should this copy
|
@schnittstabil I don't really know My proposition was just to simplify the API. I understand that cpy follow the API of linux cp method. |
@guillaumevincent Propositions are always welcome.
We don't have to, however most users expect a similar behavior. @guillaumevincent Would you find a # instead of (1)
cpy --cwd=assets/test '**/*.html' '../../dist' --parents
# or
cd assets/test && cpy '**/*.html' '../../dist' --parents && cd ../..
# cut the first 2 directories (assets/test)
cpy 'assets/**/*.html' 'dist' --parents --cut-dirs=2
# result:
dist
└── test.html I'm not sure if we need this, personally I think the (1) command is sufficient. |
@schnittstabil you're right, the first command is sufficient. Maybe something in the doc :
|
Why not, a |
👍 |
@guillaumevincent Would you like to create a pull request? |
@schnittstabil pull request #22 |
Hi,
If I want to copy all the html in
assets
directory and keep the directory structure insidedist
directory I have to do the following command :I think the following command would be easier :
should return
not
here the red test guillaumevincent@fad2b31
The text was updated successfully, but these errors were encountered: