Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cloning local templates #441

Open
marius-se opened this issue Jan 10, 2024 · 2 comments
Open

Allow cloning local templates #441

marius-se opened this issue Jan 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@marius-se
Copy link

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 marius-se added the enhancement New feature or request label Jan 10, 2024
@gwynne
Copy link
Member

gwynne commented Jan 11, 2024

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
Copy link
Member

gwynne commented Jan 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants