graphmine-core / io.github.sof3.graphmine.command / CommandMap
class CommandMap
Stores a list of commands. This class can also be instantiated at individual commands to provide a sub-command list.
| <init> | CommandMap()Stores a list of commands. This class can also be instantiated at individual commands to provide a sub-command list. |
| addCommand | fun <C : Scope> addCommand(command: Command<C>, scope: C): CommandMapAdds a command to the map. |
| dispatch | fun dispatch(string: String, by: CommandSender, to: CommandReceiver): UnitDispatches a command. This function should only be used when the command name is unknown. |