Skip to content

Split oversized TUI views and CLI command files #396

@franconicola

Description

Problem.
Several TUI / CLI files exceed 1 kLOC, mixing rendering, event handling, and business logic.

Targets.

Actions.

  • For each TUI file: extract widgets to siblings (screens/, widgets/), keep top-level files as routers.
  • For cli/commands/attack.py: split into parse_config() (pure, testable) and run_attack() (uses HackAgent). Both reusable from the TUI.
  • Add textual snapshot tests for any newly extracted screens.

Acceptance: no file in cli/ exceeds 600 lines; parse_config is unit-tested; TUI snapshot tests added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions