Interface CommandHandler


@NullMarked public interface CommandHandler
Represents the command handler.
  • Method Details

    • getManager

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

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

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

      default void setupExceptionHandlers()
    • registerSubcommand

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

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

      default void registerSubcommands()