Add the command line entry point
CI / checks (pull_request) Successful in 1m13s

python -m turtle_challenges <challenge> and the turtle-challenges command open a
window, run the named challenge and wait for a click. square and dashed-line are
registered; a missing Tk is reported with a hint instead of a traceback.

Task: MIL-002#6
This commit is contained in:
2026-10-07 23:58:56 +08:00
parent a34bf6bbc2
commit b3153b9dc1
7 changed files with 235 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
"""!
@file __main__.py
@brief Entry point of `python -m turtle_challenges`.
"""
from turtle_challenges.cli import main
if __name__ == "__main__":
raise SystemExit(main())