add app.py
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Entry point for the task.
|
||||
|
||||
This script simply imports the parsing function from ``src/main.py`` and
|
||||
provides a small CLI wrapper that can be used in the course tests.
|
||||
"""
|
||||
|
||||
from src.main import parse_task_description
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python app.py '<task description>'")
|
||||
sys.exit(1)
|
||||
description = sys.argv[1]
|
||||
card = parse_task_description(description)
|
||||
print(card.model_dump_json(indent=2, ensure_ascii=False))
|
||||
Reference in New Issue
Block a user