ToolSet / com.zndevs.toolset.commands.tools / SubCommand

SubCommand

class SubCommand

Constructors

<init> SubCommand(name: String, charNames: Array<String>, commandRunner: ToolSetCommand)
Creates a subcommand instance without a descriptionSubCommand(name: String, desc: String, commandRunner: ToolSetCommand)
Creates a subcommand instance without aliasesSubCommand(name: String, commandRunner: ToolSetCommand)
Creates a subcommand instance without a description or aliasesSubCommand(name: String, charNames: Array<String>, customHandledArgs: String?, desc: String?, commandRunner: SimpleCommandLambda)
Creates a subcommand instanceSubCommand(name: String, charNames: Array<String>, desc: String, commandRunner: SimpleCommandLambda)
Creates a subcommand instance without customly handled argumentsSubCommand(name: String, charNames: Array<String>, commandRunner: SimpleCommandLambda)
Creates a subcommand instance without customly handled arguments or a descriptionSubCommand(name: String, desc: String, commandRunner: SimpleCommandLambda)
Creates a subcommand instance without customly handled arguments or aliasesSubCommand(name: String, commandRunner: SimpleCommandLambda)
Creates a subdommand instance with just a name and command runnerSubCommand(longName: String, shortNames: Array<String>, description: String?, command: ToolSetCommand)

Properties

command var command: ToolSetCommand
Command runner instance
description var description: String?
A description about the command
inlineArgs var inlineArgs: String?
longName var longName: String
Full-length name of the command
shortNames var shortNames: Array<String>
Shortened names (aliases) of the command