Skip to content

Add a way to save mod templates #126

@OmgRod

Description

@OmgRod

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions