Skip to content

refactor: extract validation and path helpers into utils#39

Open
zicaiw625 wants to merge 2 commits intoApexOpsStudio:mainfrom
zicaiw625:refactor/extract-validation-utils
Open

refactor: extract validation and path helpers into utils#39
zicaiw625 wants to merge 2 commits intoApexOpsStudio:mainfrom
zicaiw625:refactor/extract-validation-utils

Conversation

@zicaiw625
Copy link
Copy Markdown

Summary

This PR performs a pure refactor to centralize shared validation and path logic.

Changes

  • adds utils/__init__.py
  • adds utils/paths.py for get_tasks_file()
  • adds utils/validation.py for:
    • validate_description()
    • validate_task_file()
    • validate_task_id()
  • updates commands/add.py, commands/list.py, and commands/done.py to use the shared utilities

Notes

  • Intended as a no-behavior-change refactor
  • Existing validation semantics are preserved
  • Performed local smoke checks for imports and validation behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant