Annotation Interface Shortcut


@Target(METHOD) @Retention(RUNTIME) public @interface Shortcut
Is used to register a shortcut for the sub command executor. It has to be declared on the method annotated with Execute with name specified (cannot be used with root executor). Example:
   @Command(name = "team")
   public class TeamCommand {
      @Execute(name = "add")
      @Shortcut("t-add")
      void execute() {
          // ...
      }
   }
 
Class above would register command /team add and its shortcut /t-add.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details