Skip to content

Commit

Permalink
Issue #117 Inicio de um prompt melhor sem perguntar várias vezes o no…
Browse files Browse the repository at this point in the history
…me do model
  • Loading branch information
huogerac committed Oct 30, 2024
1 parent f9d43e9 commit 07f5e16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"description": "The Ultimate Django and Vue Template",
"app_name": "core",
"model": "Tasks",
"model_lower": "{{ cookiecutter.model.lower() }}",
"model_singular": "{{ cookiecutter.model[:-1] }}",
"model_singular_lower": "{{ cookiecutter.model_singular.lower() }}",
"python_version": ["3.11", "3.10", "3.9"],
"package_manager": ["requirements.txt", "poetry"],
"python_linter": ["flake8", "pylint", "ruff"],
Expand Down
7 changes: 7 additions & 0 deletions hooks/pre_gen_project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
{{ cookiecutter.update({"model_lower": cookiecutter.model.lower() }) }}
{{ cookiecutter.update({"model_singular": cookiecutter.model[:-1] }) }}
{{ cookiecutter.update({"model_singular_lower": cookiecutter.model_singular.lower() }) }}
"""

0 comments on commit 07f5e16

Please sign in to comment.