From 7ff97419e36a4e6655d27577ec5d8b32367b4eac Mon Sep 17 00:00:00 2001 From: h Date: Wed, 9 Sep 2026 00:18:15 +0200 Subject: [PATCH] Override-based compose, profiles in .env, README --- templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates.py b/templates.py index 5068b74..2673a47 100644 --- a/templates.py +++ b/templates.py @@ -76,9 +76,9 @@ def new(args: argparse.Namespace) -> None: run_copy(template(name), dest, data=data, unsafe=True, defaults=args.defaults, vcs_ref=REF) dest.mkdir(parents=True, exist_ok=True) - copy("infra", {"layout": "single" if single else "parts", "parts": [] if single else stack}) - layout = "root" if single else "part" identity = {"project_name": name, "project_slug": slug} + copy("infra", {"project_name": name, "layout": "single" if single else "parts", "parts": [] if single else stack}) + layout = "root" if single else "part" if backend: copy(BACKENDS[backend], {**identity, "layout": layout, "serve_spa": serve == "api", "author_name": git_config("user.name"), "author_email": git_config("user.email")})