You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My wish may be impossible: a way to change my mind about template options after the fact. Consider Luminus: (yes, it's a lein template) There are a bunch of choices that you have to make up front, but have no way to re-visit or re-examine later. We should be able to instantiate the basic thing, and then later add the "reagent" option (or whatever). I could imagine that this would only work if you haven't changed too much of the template, already.
Rick Moynahan replied:
I think modifying / integrating existing code whether it came from a template or not is going to be very awkward.
However I do think if it’s not already supported a way of overlaying new files into the same project may be worth while.
e.g. imagine you clj-new a minimal clojure project then later decide to add in your companies default circle ci template. Providing the file additions don’t intersect with code in the repo already that would be ok.
My response:
That's good feedback. I currently have it written to not overwrite an existing project, unless you say :overwrite true but, right now, that deletes any existing target directory first. I'll create an issue to rethink that.
The text was updated successfully, but these errors were encountered:
I think a reasonable compromise here is to only delete the existing directory if :overwrite is :delete but to overlay the template onto the existing project if :overwrite is any other truth value (such as true). That makes the delete operation explicit while still allowing multiple templates to be overlaid on each other.
Russell Mull on Slack:
Rick Moynahan replied:
My response:
The text was updated successfully, but these errors were encountered: