From bfb79e573daec18bd870dfa81f0dc1b74a262afa Mon Sep 17 00:00:00 2001 From: yenru0 Date: Wed, 6 May 2026 02:40:41 +0900 Subject: [PATCH] fix create --- run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.py b/run.py index 0eac34d..45a176d 100755 --- a/run.py +++ b/run.py @@ -541,7 +541,7 @@ def register(location: str): @click.option( "--force", "-f", is_flag=True, help="Overwrite existing file if it already exists" ) -def create(target: str, completed: bool, template: bool, force: bool): +def create(target: str, completed: bool, no_template: bool, force: bool): """ 지정된 location을 storage에 생성하는 명령어 """ @@ -563,10 +563,10 @@ def create(target: str, completed: bool, template: bool, force: bool): if not force: return - if not template: + if no_template: content = b"" else: - template_path = TEMPLATES_DIR / f"{lang.value}.txt" + template_path = TEMPLATES_DIR / f"template.{lang.value}" if template_path.is_file(): content = template_path.read_bytes() click.secho(f"Using template: {template_path}", fg="cyan")