we can now generate the datasets to be served to users

This commit is contained in:
Karma Riuk
2025-04-29 14:41:11 +02:00
parent bde9d45c10
commit b3877733cb
2 changed files with 129 additions and 4 deletions

View File

@ -164,3 +164,14 @@ def run_git_cmd(cmd: list[str], repo_path: str) -> subprocess.CompletedProcess:
capture_output=True,
text=True,
)
def prompt_yes_no(prompt: str) -> bool:
while True:
ans = input(f"{prompt} [y/n]: ").strip().lower()
if ans in {"y", "yes"}:
return True
elif ans in {"n", "no"}:
return False
else:
print("Please enter 'y' or 'n'.")