Skip to content

Create alias for subcommand #152

Open
@fu050409

Description

@fu050409

Describe the feature

Hey! Sometimes we faced with a situation that we should create alias for subcommands. For example, pnpm i and pnpm install. The subcommand named i and subcommand named install is the same command.

The solution now is to create two subcommands with same value, like:

subCommands: { i: installCommand, install: installCommand }

But this looks not so elegant. Can we support alias parameter for defineCommand? I can work for my issue.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions