Skip to content

refactor: Split commands.rs into per-command modules #151

@erishforG

Description

@erishforG

Problem

commands.rs is a 3,038-line monolith containing all 25+ subcommand implementations. ParsecConfig::load() appears 27 times. Functions like ship() (~210 lines) and merge() (~226 lines) are individually too long.

Proposed Solution

Split into commands/start.rs, commands/ship.rs, commands/merge.rs, commands/ci.rs, etc. Extract shared helpers (config loading, repo resolution, ticket auto-detect from cwd) into commands/common.rs.

Impact

Reduces cognitive load, enables parallel development on different commands.

Category: refactor | Priority: high

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions