Skip to content

Commit 8b3a451

Browse files
committed
feat: default context to cookiecutter.json
1 parent 3549d9d commit 8b3a451

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cookiecutter.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"app_name": "sample",
2+
"app_name": "{{cookiecutter.app_name}}",
33
"app_name_lower": "{{cookiecutter.app_name.lower()}}",
4-
"app_title": "{{cookiecutter.app_name.capitalize()}}"
4+
"app_title": "{{cookiecutter.app_name.capitalize()}}",
5+
"group_id": "org.dfm.{{cookiecutter.app_name_lower}}",
6+
"artifact_id": "{{cookiecutter.app_name_lower}}"
57
}

test-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default_context:
2+
app_name: "sample"
3+
group_id: "org.example.sample"
4+
artifact_id: "sample"

0 commit comments

Comments
 (0)