Annotation Interface SubCommand


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface SubCommand
Declares a subcommand on a type or method, with optional attachment mode and suggestion-permission behavior.
  • Element Details

    • value

      String[] value
      Returns:
      The names of subcommands
    • skipSuggestionsChecks

      boolean skipSuggestionsChecks
      Returns:
      Whether to skip permission checks during auto-completion.
      Default:
      false
    • attachment

      AttachmentMode attachment
      Returns:
      The type of attachment of this subcommand to its parent command.
      Default:
      UNSET