Add CommandArgumentParser and integrate argument parsing from cli and menu prompt

This commit is contained in:
2025-05-17 21:10:50 -04:00
parent b14004c989
commit 62276debd5
11 changed files with 1416 additions and 40 deletions

View File

@ -8,9 +8,9 @@ setup_logging()
# A flaky async step that fails randomly
async def flaky_step():
async def flaky_step() -> str:
await asyncio.sleep(0.2)
if random.random() < 0.5:
if random.random() < 0.3:
raise RuntimeError("Random failure!")
print("Flaky step succeeded!")
return "ok"