Interface CommandHandler


public interface CommandHandler
Represents the command handler.
  • Method Details

    • getManager

      @NotNull @NotNull org.incendo.cloud.CommandManager<@NotNull Sender> getManager()
      Get the command manager.
      Returns:
      command manager
    • getPlatformParsers

      @NotNull @NotNull PlatformParsers getPlatformParsers()
      Get the platform parsers.
      Returns:
      platform parsers
    • getRoot

      @NotNull org.incendo.cloud.Command.Builder<@NotNull Sender> getRoot()
      Get the root command.
      Returns:
      the root command
    • setupExceptionHandlers

      default void setupExceptionHandlers()
    • registerSubcommand

      default void registerSubcommand(@NotNull @NotNull UnaryOperator<@NotNull org.incendo.cloud.Command.Builder<@NotNull Sender>> builder)
      Register a new subcommand.
      Parameters:
      builder - command builder
    • buildRoot

      default @NotNull org.incendo.cloud.Command.Builder<@NotNull Sender> buildRoot()
    • registerSubcommands

      default void registerSubcommands()