ToolSet / com.zndevs.toolset.commands.tools / SubCommand / <init>

<init>

SubCommand(name: String, charNames: Array<String>, commandRunner: ToolSetCommand)

Creates a subcommand instance without a description

Parameters

name - Name of the command

charNames - Aliases of the command

commandRunner - The command runner instanceSubCommand(name: String, desc: String, commandRunner: ToolSetCommand)

Creates a subcommand instance without aliases

Parameters

name - Name of the command

desc - The command’s description

commandRunner - The command runner instanceSubCommand(name: String, commandRunner: ToolSetCommand)

Creates a subcommand instance without a description or aliases

Parameters

name - Name of the command

commandRunner - The command runner instanceSubCommand(name: String, charNames: Array<String>, customHandledArgs: String?, desc: String?, commandRunner: SimpleCommandLambda)

Creates a subcommand instance

Parameters

name - Name of the command

charNames - Aliases of the command

customHandledArgs - Arguments that are customly handled

desc - The command’s description

commandRunner - The command runner lambdaSubCommand(name: String, charNames: Array<String>, desc: String, commandRunner: SimpleCommandLambda)

Creates a subcommand instance without customly handled arguments

Parameters

name - Name of the command

charNames - Aliases of the command

desc - The command’s description

commandRunner - The command runner lambdaSubCommand(name: String, charNames: Array<String>, commandRunner: SimpleCommandLambda)

Creates a subcommand instance without customly handled arguments or a description

Parameters

name - Name of the command

charNames - Aliases of the command

commandRunner - The command runner lambdaSubCommand(name: String, desc: String, commandRunner: SimpleCommandLambda)

Creates a subcommand instance without customly handled arguments or aliases

Parameters

name - Name of the command

desc - The command’s description

commandRunner - The command runner lambdaSubCommand(name: String, commandRunner: SimpleCommandLambda)

Creates a subdommand instance with just a name and command runner

Parameters

name - Name of the command

commandRunner - The command runner lambdaSubCommand(longName: String, shortNames: Array<String>, description: String?, command: ToolSetCommand)