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

Choice template #51

Open
F0rzend opened this issue Sep 17, 2021 · 4 comments
Open

Choice template #51

F0rzend opened this issue Sep 17, 2021 · 4 comments

Comments

@F0rzend
Copy link

F0rzend commented Sep 17, 2021

I want to use my own templates for project and application generation.

@F0rzend F0rzend closed this as completed Sep 17, 2021
@F0rzend F0rzend reopened this Sep 17, 2021
@Kludex
Copy link
Collaborator

Kludex commented Sep 17, 2021

Ok. How can we help here?

@Kludex
Copy link
Collaborator

Kludex commented Sep 18, 2021

Thinking about this, what we can do:

  • Create a .config/manage-fastapi folder, which stores local configuration.
  • Register templates on manage-fastapi, store the path reference on the .config/manage.fastapi folder.
  • Enable a custom command on the CLI - maybe custom. To include and to create custom templates.

@F0rzend
Copy link
Author

F0rzend commented Sep 19, 2021

Thinking about this, what we can do:

  • Create a .config/manage-fastapi folder, which stores local configuration.
  • Register templates on manage-fastapi, store the path reference on the .config/manage.fastapi folder.
  • Enable a custom command on the CLI - maybe custom. To include and to create custom templates.

I think the best solution would be a directory in the system, for example ~manage_fastapi/templates, and a cli command -t, --template [template name or link (cookiecutter supports links)]

@F0rzend
Copy link
Author

F0rzend commented Sep 19, 2021

You also need the ability to launch a project with a custom template, eali. that uses the factory for the application. Honestly, I don't know the best way to do this.

Probably the --factory flag when generating a project using a custom template would be a good idea. but then you need to add --factory to the startup and, as it seems to me, it is better to search for the factory with the name app_factory, not app, as now for application

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

No branches or pull requests

2 participants