From 5ed52e0d0ef4bb17e4fc5d568b1b9ce52710fc91 Mon Sep 17 00:00:00 2001 From: Tobi DEGNON Date: Sat, 23 Nov 2024 12:20:54 +0100 Subject: [PATCH] read author info from env if available --- src/falco_cli/start_project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/falco_cli/start_project.py b/src/falco_cli/start_project.py index dea90af..7a2f4b8 100644 --- a/src/falco_cli/start_project.py +++ b/src/falco_cli/start_project.py @@ -173,8 +173,8 @@ def resolve_blueprint(blueprint: str, *, use_local: bool = False) -> tuple[str, def get_authors_info() -> tuple[str, str]: - default_author_name = "Tobi DEGNON" - default_author_email = "tobidegnon@proton.me" + default_author_name = os.getenv("AUTHOR_NAME") or "Tobi DEGNON" + default_author_email = os.getenv("AUTHOR_EMAIL") or "tobidegnon@proton.me" git_config_cmd = ["git", "config", "--global", "--get"] try: user_name_cmd = subprocess.run(