CommanderCommandCreationContext
Properties
Link copied to clipboard
The action of the command
Link copied to clipboard
The aliases of the command
Link copied to clipboard
The arguments of the command
Link copied to clipboard
The subcommands of the command
Link copied to clipboard
The description of the command
Link copied to clipboard
The options of the command
Functions
Link copied to clipboard
Add an action to the command
Link copied to clipboard
Add description to the command
Link copied to clipboard
Generate the command
Link copied to clipboard
fun option(name: String, aliases: Array<String> = arrayOf(), shortAliases: Array<String> = arrayOf(), description: String? = null, required: Boolean = false, hasValue: Boolean = false, defaultValue: String? = null, valueName: String? = null, valueDescription: String? = null, valueValidator: CommanderValueValidator? = null)
Add an option to the command
Link copied to clipboard
fun subcommand(name: String, aliases: Array<String> = arrayOf(), description: String? = null, action: CommanderCommandAction? = null, init: CommanderCommandInit? = null)
Add a subcommand to the command