loreanvictor / tmplr

Automate Code Scaffolding
MIT License
26 stars 0 forks source link

Add glob pattern support to copy #8

Closed loreanvictor closed 1 year ago

loreanvictor commented 1 year ago

Follow up of this thread, copy should support glob patterns similar to update (and remove, after this is merged).

Open questions:

tommy-mitchell commented 1 year ago

Could be worth looking at https://github.com/sindresorhus/cpy-cli and https://github.com/sindresorhus/cpy. I'm really interested in the glob features, it would simplify making templates a lot.

loreanvictor commented 1 year ago

@tommy-mitchell mirroring the behavior sounds like a good idea. we could copy the structure after the first occurrence of a glob star (**). I will implement this behavior in tmplr-core, which should then automatically be reflected in the final tmplr package as well.

loreanvictor commented 1 year ago

closed by e95e067 (tmplr@0.2.3).