cli icon indicating copy to clipboard operation
cli copied to clipboard

Add a way to save mod templates

Open OmgRod opened this issue 7 months ago • 2 comments

Add a way to save and easily reuse (without having to type the repo and branch again) mod templates, e.g.:

1st time creating mod with template:

geode new
| Info | This utility will walk you through setting up a new mod.
| Info | You can change any of the properties you set here later on by editing the generated mod.json file.
| Info | Choose a template for the mod to be created:

| Info | Here you can use any github repository
| Info | Use this syntax: 'user/repo' or 'user/repo@branch'
Template: OmgRod/template@random-branch
Would you like to save this template? (Y/N): Y

2nd time creating mod with template:

| Info | This utility will walk you through setting up a new mod.
| Info | You can change any of the properties you set here later on by editing the generated mod.json file.
| Info | Choose a template for the mod to be created:
  Default - Simple mod that adds a button to the main menu.
  Minimal - Minimal mod with only the bare minimum to compile.
  GitHub Repository - Use your own custom template from github.
  Local Repository - Mod template from your own local git repository.
❯ Saved Repository - Mod template you previously used

...

| Info | Please pick a repository from the list below:

1. OmgRod/template@random-branch
2. OmgRod/template@another-branch

Template Number: 1
Cloning repo.. blah blah blah...

And then to delete saved repositories, use a geode config command

OmgRod avatar May 31 '25 10:05 OmgRod

btw i can understand this being very overcomplicated just for cloning a repository lol

OmgRod avatar May 31 '25 10:05 OmgRod

Imo that would be quite useful

Geming400 avatar May 31 '25 10:05 Geming400