Skip to content

M10: Registry loading boilerplate repeated 4x across PackCommand subcommands #109

@bguidolim

Description

@bguidolim

Severity: MEDIUM

All four `PackCommand` subcommands repeat identical initialization (`Environment`, `CLIOutput`, `ShellRunner`, `PackRegistryFile`) and three share the same registry data loading `do/catch` pattern (~7 lines verbatim 3x).

Fix: Extract a `PackCommandContext` struct with a `loadRegistry()` method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DRYCode duplication / DRY violationP2Medium prioritytech-debtTechnical debt and code quality improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions