Skip to content

Implement lifecycle hooks for cleanup command #5

@Stephanvs

Description

@Stephanvs

As described in the documentation, the cleanup command should run pre_cleanup and post_cleanup lifecycle hooks if configured.

Current behavior: No hooks are executed during cleanup.

Implementation needed:

  • Inject ScriptsConfig and HookRunner into CleanupCommand
  • Run PreCleanup hook before removing worktrees
  • Run PostCleanup hook after removing worktrees
  • Handle hook failures appropriately (log but don't block cleanup)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions