PkgTemplates.jl icon indicating copy to clipboard operation
PkgTemplates.jl copied to clipboard

Create templates from templates

Open christopher-dG opened this issue 6 years ago • 4 comments

Say you have a Template somewhere but you want to change something just this once, it would be nice to do something like:

julia> t = a_template_from_startup_jl_or_something
julia> t2 = Template(t; julia_version=v0.6)

With the result that t2 is identical to t except its julia_version has been overridden.

Similarly, interactive_template could have this option as well.

cc @iamed2 in case you have further comments

christopher-dG avatar Nov 07 '18 22:11 christopher-dG

Interactive part depends on https://github.com/JuliaLang/julia/pull/30043.

christopher-dG avatar Nov 14 '18 22:11 christopher-dG

https://github.com/JuliaLang/julia/pull/30043 closed by https://github.com/JuliaLang/julia/pull/35915 🎉

nickrobinson251 avatar Aug 26 '20 17:08 nickrobinson251

How does this look in the PkgTemplates v0.7+ world, @christopher-dG?

nickrobinson251 avatar Aug 26 '20 17:08 nickrobinson251

The non-interactive bit is like 10 lines of code, so we can definitely go ahead with that. Technically the interactive stuff is doable even on 1.0, it's just kind of ugly (but that same ugliness is already in the code anyways).

christopher-dG avatar Aug 27 '20 02:08 christopher-dG