Using the wrong template name results in an error about a bad repository format:
➜ spacetime init --template next-js my-js-project
A new version of SpacetimeDB is available: v2.3.0 (current: v2.2.0)
Run `spacetime version upgrade` to update.
You are logged in to SpacetimeDB.
Project name: my-js-project
✔ Project path · ./my-js-project
✔ Database name · my-js-project-5o1kj
Template: next-js
Initializing project from template...
Error: Invalid repository format. Use 'owner/repo' or full git clone URL
is there something better we can do here? I don't think it's as simple as "assume it's a template name" since people might try to just type in their repo name as a value. Perhaps two different params? (--template vs --template-repo)
Using the wrong template name results in an error about a bad repository format:
is there something better we can do here? I don't think it's as simple as "assume it's a template name" since people might try to just type in their repo name as a value. Perhaps two different params? (
--templatevs--template-repo)