vapor / toolbox

Simplifies common command line tasks when using Vapor
MIT License
283 stars 85 forks source link

Allow cloning local templates #441

Open marius-se opened 6 months ago

marius-se commented 6 months ago

Currently vapor new --template ... only supports remote git repositories. Being able to load a template from a local filesystem would be great!

Describe the solution you'd like vapor new --template file:///Users/marius/Developer/my-awesome-template

I think this could be quite helpful, especially for testing! :)

Let me know what you think and I can implement it.

gwynne commented 6 months ago

You can already do this; you just have to be more specific for Git's benefit (it's used to clone URLs being bare repos, not checkouts)- vapor new --template file:///Users/marius/Developer/my-awesome-template/.git

gwynne commented 6 months ago

(Leaving this open in case I've misremembered whether the above works and/or it has stopped working 😅.)