Skip to content

refactor: split CLI into modular package#161

Open
rtmalikian wants to merge 1 commit into
zigcBenx:masterfrom
rtmalikian:rtmalikian/openpledge-95-refactor
Open

refactor: split CLI into modular package#161
rtmalikian wants to merge 1 commit into
zigcBenx:masterfrom
rtmalikian:rtmalikian/openpledge-95-refactor

Conversation

@rtmalikian
Copy link
Copy Markdown

Summary

  • Split the monolithic gitHappens.py entrypoint into a githappens/ package with focused config, GitLab API, git utility, template, interactive prompt, and command modules.
  • Kept gitHappens.py as a backward-compatible executable wrapper for existing aliases.
  • Added unit tests covering parser dispatch, config/template loading, GitLab command construction, report incident issue type preservation, and command module behavior.
  • Updated the README with the new project structure.

OpenPledge

Verification

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v
  • PYTHONDONTWRITEBYTECODE=1 python3 gitHappens.py --help
  • git diff --check

Closes #116

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.

Refactor monolithic gitHappens.py into modular architecture

1 participant