core icon indicating copy to clipboard operation
core copied to clipboard

Ability to set aliases for sub commands.

Open richburdon opened this issue 1 year ago • 0 comments

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.

richburdon avatar Aug 18 '22 19:08 richburdon