sub

fun sub(name: String, builder: CommandBuilder.() -> Unit)

Defines a subcommand under the current command.

Parameters

name

The name of the subcommand.

builder

The block to configure the subcommand.