pkgs/cli: Rename create_file -> persist

This commit is contained in:
a-kenji
2025-02-04 15:37:52 +07:00
committed by clan-bot
parent aaa60d30f6
commit cf1a4f805c
3 changed files with 8 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ def _get_previous_value(
generator: Generator,
prompt: Prompt,
) -> str | None:
if not prompt.create_file:
if not prompt.persist:
return None
pub_store = public_store(machine)

View File

@@ -23,7 +23,7 @@ class Prompt:
description: str
prompt_type: PromptType
create_file: bool = False
persist: bool = False
previous_value: str | None = None
@classmethod
@@ -32,7 +32,7 @@ class Prompt:
name=data["name"],
description=data["description"],
prompt_type=PromptType(data["type"]),
create_file=data.get("persist", data["persist"]),
persist=data.get("persist", data["persist"]),
previous_value=data.get("previousValue"),
)