add

fun add(name: String, shortcut: String? = null, group: String? = null, action: () -> Unit): Command(source)

Adds the command name that calls action, when the keys of shortcut are pressed too, like mod+s; a command with the same name and group replaces it