abelsiqueira / BestieTemplate.jl

Template for Julia Programming Language packages using the copier engine.
http://abelsiqueira.com/BestieTemplate.jl/
Mozilla Public License 2.0
38 stars 9 forks source link

Is it possible to support private additions? #368

Open abelsiqueira opened 2 months ago

abelsiqueira commented 2 months ago

Description

Question by @xvries. We should discuss the use case and how it could be done.

abelsiqueira commented 2 days ago

Apparently, it should be easy to support private additions, by just having a separate copier template and generating answers in a separate file than .copier-answers.yml (which is the default). Information: https://copier.readthedocs.io/en/stable/configuring/#applying-multiple-templates-to-the-same-subproject

I think it requires using the Copier interface via Bestie or the python copier CLI directly. I'm guessing something like this should be the way:

using BestieTemplate
BestieTemplate.generate("MyPkg.jl")
BestieTemplate.Copier.copy("https://private.git.repo/template", "MyPkg.jl", answers_file=".copier-answers.private.yml")

@dpo @tmigot might be relevant for JSO specific things

@pat-alt maybe this is relevant to what you wanted to do?