-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Unify patterns
CLI I/O patterns: read/write, print, and errors. Centralize helpers:
io_read(path), io_write(path, data), print_err(msg).
Every place where direct I/O is called is replaced by a helper.
The result: fewer points of explosion, and easier testing.
Independent PR: Clear title, “Evidence” contains a snippet of wc -l and radon cc before/after.
توحيد الأنماط
أنماط I/O للـCLI: قراءة/كتابة، الطباعة، الأخطاء. ضع helpers مركزية:
io_read(path), io_write(path, data), print_err(msg).
كل مكان يستدعي I/O مباشر يستبدل بـ helper.
النتيجة: نقاط أقل للانفجار، واختبارات أسهل.