Skip to content

refactor: extract HookManager from cli_hooks.py #33

@dreamlx

Description

@dreamlx

Problem

cli_hooks.py is 826 lines, mixing CLI commands with business logic (HookManager class + script generators).

Suggestion

  • Move HookManager class and script generators to src/codeindex/hook_manager.py
  • Keep cli_hooks.py as thin CLI layer (~200 lines)
  • Consistent with claude_md.py / cli_claude_md.py pattern

Priority

Medium - improves maintainability but not blocking any features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions