GraphMine

graphmine-core / io.github.sof3.graphmine.command / CommandMap

CommandMap

class CommandMap

Stores a list of commands. This class can also be instantiated at individual commands to provide a sub-command list.

Constructors

<init> CommandMap()
Stores a list of commands. This class can also be instantiated at individual commands to provide a sub-command list.

Functions

addCommand fun <C : Scope> addCommand(command: Command<C>, scope: C): CommandMap
Adds a command to the map.
dispatch fun dispatch(string: String, by: CommandSender, to: CommandReceiver): Unit
Dispatches a command. This function should only be used when the command name is unknown.