Skip to content

Deduplicate command list in cli.go #230

@digitalghost-dev

Description

@digitalghost-dev

Extract command names and descriptions into a single commandDescriptions slice and add a renderCommandList() helper function.

This eliminates the duplication where the command list appeared twice. Once in the help menu and again in the invalid command error message. Adding or removing commands now only requires updating one location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRefactoring existing code.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions