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 4899c38e52
commit 6d2845c645
3 changed files with 8 additions and 8 deletions

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"),
)