Skip to content

Unify patterns #54

@ali90h

Description

@ali90h

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.

النتيجة: نقاط أقل للانفجار، واختبارات أسهل.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions