Skip to content

Conversation

@muunitnocQ
Copy link
Contributor

Closes #17
Adds a new marker annotation called QualifiedSubCommand:

@QualifiedSubCommand(aliases = {"commandalias"})
class MySubCommand extends SubCommand {
   //....
}

This registers the subcommand as it would normally, but also registers it as a base command.
The annotation optionally takes an aliases parameter.

Disclaimer: I have no means of testing this. I don't see why it wouldn't work, but yeah.

@KodySimpson
Copy link
Collaborator

@muunitnocQ Hey, what if they don't want it as a base command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Marker interface for specialized subcommands

2 participants