Replies: 1 comment
-
You can do that in just a normal template file. When copier applies the
template the 1st time, it will ask you to overwrite it. Just say no, or say
yes but fix the diff with git before committing.
On later updates, copier will try to smartly update the file from the
template, respecting the file evolution in your project as much as
possible.
El sáb, 28 may 2022 5:53, Roman A. Taycher ***@***.***>
escribió:
… Especially appending files or appending before or after a matching line?
I want to be able to insert new functions/variables in a couple of places
in my code base from templates. So you could name a THING and have
different THING class/registerThing/createThing code generated in several
places in your code base?
Maybe a plugin/extension of copier that does this? Or any other package
you know that does this? It's hard to Google
—
Reply to this email directly, view it on GitHub
<#687>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHNXDNRE2TLM2OOZY3TQ3LVMGRDDANCNFSM5XGCFWYA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Especially appending files or appending before or after a matching line?
I want to be able to insert new functions/variables in a couple of places in my code base from templates. So you could name a THING and have different THING class/registerThing/createThing code generated in several places in your code base?
Maybe a plugin/extension of copier that does this? Or any other package you know that does this? It's hard to Google
Beta Was this translation helpful? Give feedback.
All reactions