| Crates.io | cpar |
| lib.rs | cpar |
| version | 0.1.1 |
| created_at | 2022-11-16 00:43:59.179379+00 |
| updated_at | 2022-12-03 16:06:32.906708+00 |
| description | A commmand line utility that allows for batch coping & renaming with globs. |
| homepage | https://github.com/alligatorjazz/cpar |
| repository | https://github.com/alligatorjazz/cpar |
| max_upload_size | |
| id | 716057 |
| size | 23,103 |
A commmand line utility that allows for batch coping & renaming with globs.
Copies and mass-renames files using the variable character ($)
Usage: cpar <INPUT_PATH> <OUTPUT_PATH>
Arguments:
<INPUT_PATH> The files to be copied and renamed
<OUTPUT_PATH> The path for the renamed files
Options:
-h, --help Print help information
-V, --version Print version information
Assume a folder with the following files:
src/
- ContactForm.tsx
- ContactForm.module.scss
- ContactForm.astro
cpar src/ContactForm$ src/MembershipForm$ the folder will contain:
src/
- ContactForm.tsx
- ContactForm.module.scss
- ContactForm.astro
+ MembershipForm.tsx (same contents as ContactForm.tsx)
+ MembershipForm.module.scss (same contents as ContactForm.module.scss)
+ MembershipForm.astro (same contents as ContactForm.astro)
Assume a folder with the following files:
src/
- foo.ts
- bar.ts
cpar src/$.js src/$.ts the folder will contain:
src/
- foo.js
- bar.js
cargo test -- --test-threads=1
Probably a bunch, but the ones that prodded me to make the tool in the first place were:
.astro files*) in place of ($).