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

feat: add support for a template registry #111

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

beeman
Copy link
Collaborator

@beeman beeman commented Feb 27, 2025

This PR changes the way how templates are handled by this CLI.

Currently, we have 6 hard-coded templates in this CLI. If we want to add a new template, we need to:

  • we create a new template in its own repo
  • ship an update to the CLI that includes that template
  • manually ensure the template is kept in sync, is tested, etc.

By moving the CLI to work with a template registry, we get a few benefits:

  • we create a new template in the registry
  • we don't have to update the CLI but instead it will fetch the registry and list what's there
  • we can have scripts that ensure templates are kept in sync, we can do tests for all templates at once.

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

Successfully merging this pull request may close these issues.

1 participant