subcommand

Add a subcommand to the command

Since

0.1.0

Parameters

cliCommand

The subcommand to add


Add a subcommand to the command

Since

0.1.0

Parameters

init

The init function to create the subcommand


fun subcommand(name: String, aliases: Array<String> = arrayOf(), description: String? = null, action: CommanderCommandAction? = null, init: CommanderCommandInit? = null)(source)

Add a subcommand to the command

Since

0.1.0

Parameters

name

The name of the subcommand

aliases

The aliases of the subcommand

description

The description of the subcommand

action

The action of the subcommand

init

The init function of the subcommand