@@ -11,6 +11,24 @@ project_type:
1111 - " mcp-server"
1212 - " agent"
1313
14+ plugins :
15+ type : str
16+ help : Which plugins would you like to enable?
17+ multiselect : true
18+ default : |
19+ {% if project_type in ["api-monolith", "api-microservice", "agent"] %}
20+ - "sqladmin"
21+ {% else %}
22+ []
23+ {% endif %}
24+ choices : |
25+ {% if project_type in ["api-monolith", "api-microservice", "agent"] %}
26+ SQLAdmin [interface for database management]: sqladmin
27+ {% else %}
28+ {}
29+ {% endif %}
30+ when : " {{ project_type in ['api-monolith', 'api-microservice', 'agent'] }}"
31+
1432project_name :
1533 type : str
1634 help : What is your project name?
@@ -64,7 +82,6 @@ _exclude:
6482 - " {{ '*/app/database.py' if project_type not in ['api-monolith', 'api-microservice', 'agent'] else '' }}"
6583 - " {{ '*/app/mappings.py' if project_type not in ['api-monolith', 'api-microservice', 'agent'] else '' }}"
6684 - " {{ '*/app/utils/mappings_meta.py' if project_type not in ['api-monolith', 'api-microservice', 'agent'] else '' }}"
67- - " {{ '*/app/integrations/sqladmin' if project_type not in ['api-monolith', 'api-microservice', 'agent'] else '' }}"
6885
6986 - " {{ '*/README_api.md' if project_type not in ['api-monolith', 'api-microservice'] else '' }}"
7087 - " {{ 'Dockerfile' if project_type not in ['api-monolith', 'api-microservice'] else '' }}"
@@ -75,13 +92,13 @@ _exclude:
7592 - " {{ '*/app/repositories.py' if project_type != 'api-monolith' else '' }}"
7693 - " {{ '*/app/services.py' if project_type != 'api-monolith' else '' }}"
7794
78- - " {{ '*/app/models' if project_type != 'api-microservice' else '' }}"
7995 - " {{ '*/app/schemas/user.py' if project_type != 'api-microservice' else '' }}"
8096 - " {{ '*/app/services' if project_type != 'api-microservice' else '' }}"
8197 - " {{ '*/app/repositories' if project_type != 'api-microservice' else '' }}"
8298 - " {{ '*/app/api/routes/v1/user.py' if project_type != 'api-microservice' else '' }}"
8399
84100 - " {{ '*/app/api' if project_type not in ['api-microservice', 'agent'] else '' }}"
101+ - " {{ '*/app/models' if project_type not in ['api-microservice', 'agent'] else '' }}"
85102 - " {{ '*/app/schemas' if project_type not in ['api-microservice', 'agent'] else '' }}"
86103
87104 - " {{ '*/examples' if project_type != 'agent' else '' }}"
@@ -94,6 +111,8 @@ _exclude:
94111 - " {{ '*/README_mcp-server.md' if project_type != 'mcp-server' else '' }}"
95112 - " {{ '*/app/mcp' if project_type != 'mcp-server' else '' }}"
96113
114+ - " {{ '*/app/integrations/sqladmin' if 'sqladmin' not in plugins else '' }}"
115+
97116_tasks :
98117 - command : uvx python -c "import shutil; shutil.move('{{project_name}}/README_{{project_type}}.md', '{{project_name}}/README.md')"
99118 when : " {{ project_type in ['agent', 'mcp-server'] }}"
0 commit comments