Skip to content

The --rename flag supports string templates.#40

Merged
sindresorhus merged 4 commits intosindresorhus:mainfrom
forksss:main
Aug 23, 2022
Merged

The --rename flag supports string templates.#40
sindresorhus merged 4 commits intosindresorhus:mainfrom
forksss:main

Conversation

@jaywcjlove
Copy link
Copy Markdown
Contributor

@jaywcjlove jaywcjlove commented Aug 16, 2022

$ cpy 'src/*.png' dist --rename 'hi-{{basename}}'

output

hi-apple.png

This is an enhancement feature

@sindresorhus

@jaywcjlove jaywcjlove closed this Aug 16, 2022
@jaywcjlove jaywcjlove reopened this Aug 16, 2022
@sindresorhus
Copy link
Copy Markdown
Owner

You need to add docs too.

@jaywcjlove
Copy link
Copy Markdown
Contributor Author

@sindresorhus I have added documentation and examples.

@sindresorhus sindresorhus merged commit 82b1219 into sindresorhus:main Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants