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

Ability to set aliases for sub commands. #984

Open
richburdon opened this issue Aug 18, 2022 · 0 comments
Open

Ability to set aliases for sub commands. #984

richburdon opened this issue Aug 18, 2022 · 0 comments
Labels
waiting for interest Waiting to see if there's strong community interest

Comments

@richburdon
Copy link

bug

What is the current behavior?

Setting aliases in a command's index file does not propagate to sub-commands.

in ./commands/identity:

export default class Identity extends BaseCommand {
  static override aliases = ['id'];

in the same directory: ./commands/identity/create does not inherit the id alias

export default class Create extends BaseCommand {

Therefore cli id works but cli id create does not.

What is the expected behavior?

It would be convenient to set aliases at the root level.

@mdonnalley mdonnalley transferred this issue from oclif/oclif Mar 1, 2024
@mdonnalley mdonnalley added the waiting for interest Waiting to see if there's strong community interest label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for interest Waiting to see if there's strong community interest
Projects
None yet
Development

No branches or pull requests

2 participants