Skip to content

refactor: split cli.py into command layer + catalog/config/validator services #30

Closed

Description

@stepolan

Surfaced by the design/security review on #25.

cli.py is ~3k lines; catalog, config, and validator logic are entangled and only testable through the CLI. The shared validator (used by both catalog validate and CI) is the clearest candidate for extraction.

Proposal

  • catalog.py — load/search/install/mapping
  • config.py — load/save, --profile/env/active precedence
  • validator.py — the shared validator
  • cli.py — command registration only

Acceptance

  • Modules extracted; behavior unchanged
  • Validator importable/testable in isolation
  • Full suite still green

Effort: M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    catalogProfile catalog featureenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions