17 lines
506 B
Python
17 lines
506 B
Python
"""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))
|