toolbox icon indicating copy to clipboard operation
toolbox copied to clipboard

Allow cloning local templates

Open marius-se opened this issue 1 year ago • 2 comments

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.

marius-se avatar Jan 10 '24 22:01 marius-se

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 avatar Jan 11 '24 01:01 gwynne

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

gwynne avatar Jan 11 '24 01:01 gwynne