-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Labels
status: declined ❌A suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancement ✨
Milestone
Description
I've got a couple commands that share a lot of the same structure, but differ in defaults only. I'd like to be able to specify an abstract command, with specific implementations inhering the abstract classes Command
annotation. I think this can be accomplished by adding java.lang.annotation.Inherited
to Command
.
For example:
@Command(name = "mycommand")
abstract class MyCommand {
abstract String getContext();
}
class MyCommandFoo extends MyCommand {
String getContext() { return "foo"; }
}
class MyCommandBar extends MyCommand {
String getContext() { return "bar"; }
}
Would the Inherited Command annotation be possible?
Metadata
Metadata
Assignees
Labels
status: declined ❌A suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancement ✨