Skip to content

Commit

Permalink
infra: Set answer for template choice
Browse files Browse the repository at this point in the history
  • Loading branch information
doshitan committed Nov 8, 2024
1 parent 7cc0964 commit 79cf262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nava/platform/infra_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def install(
version: str | None = None,
data: dict[str, str] | None = None,
) -> None:
base_data = (data or {}) | {"app_name": "template-only"}
base_data = (data or {}) | {"app_name": "template-only", "template": "base"}
self._run_copy(
str(self.template_dir),
project.project_dir,
Expand Down Expand Up @@ -77,7 +77,7 @@ def update(
def update_base(
self, project: Project, *, version: str | None = None, data: dict[str, str] | None = None
) -> None:
data = (data or {}) | {"app_name": "template-only"}
data = (data or {}) | {"app_name": "template-only", "template": "base"}
self._run_update(
project.project_dir,
src_path=str(self.template_dir),
Expand All @@ -97,7 +97,7 @@ def update_app(
version: str | None = None,
data: dict[str, str] | None = None,
) -> None:
data = (data or {}) | {"app_name": app_name}
data = (data or {}) | {"app_name": app_name, "template": "app"}
self._run_update(
project.project_dir,
data=data,
Expand All @@ -116,7 +116,7 @@ def add_app(
version: str | None = None,
data: dict[str, str] | None = None,
) -> None:
data = (data or {}) | {"app_name": app_name}
data = (data or {}) | {"app_name": app_name, "template": "app"}
self._run_copy(
str(self.template_dir),
project.project_dir,
Expand Down

0 comments on commit 79cf262

Please sign in to comment.