Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create alias for subcommand #152

Open
1 task done
fu050409 opened this issue Jul 5, 2024 · 1 comment · May be fixed by #155
Open
1 task done

Create alias for subcommand #152

fu050409 opened this issue Jul 5, 2024 · 1 comment · May be fixed by #155
Labels
enhancement New feature or request

Comments

@fu050409
Copy link

fu050409 commented Jul 5, 2024

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?
@fu050409 fu050409 added the enhancement New feature or request label Jul 5, 2024
fu050409 added a commit to fu050409/citty that referenced this issue Jul 5, 2024
@fu050409 fu050409 linked a pull request Jul 5, 2024 that will close this issue
@zuixinwang
Copy link
Contributor

it's a good idea, but the help output should also be considered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants