bind

fun bind(name: String, command: Command): Commangu

Binds a Command to a name and registers it.

Usage:

Commangu.bind("name", command).bind("anotherName", anotherCommand)

Return

The current instance of Commangu for method chaining.

Parameters

name

The name to bind the Command to.

command

The Command to be registered.