Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class CommanderArgument(val command: CommanderCommand, val name: String, val description: String? = null, val required: Boolean = false, val defaultValue: String? = null, val valueName: String? = null, val valueDescription: String? = null, val valueValidator: CommanderValueValidator? = null)

A class representing an argument of a CommanderCommand

Link copied to clipboard

A class representing a context for creating a CommanderArgument

Link copied to clipboard
class CommanderCommand(val parent: CommanderCommand? = null, val name: String, val aliases: Array<String> = arrayOf(), val description: String? = null, val arguments: MutableList<CommanderArgument> = mutableListOf(), val options: MutableList<CommanderOption> = mutableListOf(), val commands: MutableList<CommanderCommand> = mutableListOf(), var action: CommanderCommandAction? = null)

A class that represents a command line interface command

Link copied to clipboard

A typealias that represents a cli command action

Link copied to clipboard

Context for creating a command

Link copied to clipboard

Init function for creating a command

Link copied to clipboard
open class CommanderCommandStackEntry(val alias: String, val command: CommanderCommand, val arguments: Map<String, CommanderValue>, val options: Map<String, Array<CommanderValue>>)

A stack entry

Link copied to clipboard

Base class for all exceptions thrown by the commander

Link copied to clipboard

Error thrown when a required argument is missing

Link copied to clipboard

Error thrown when a required option is missing

Link copied to clipboard

Error thrown when an option is missing a value

Link copied to clipboard

A mutable stack entry

Link copied to clipboard
class CommanderOption(val command: CommanderCommand, val name: String, val aliases: Array<String> = arrayOf(), val shortAlias: Array<String> = arrayOf(), val description: String? = null, val required: Boolean = false, val hasValue: Boolean = false, val defaultValue: String? = null, val valueName: String? = null, val valueDescription: String? = null, val valueValidator: CommanderValueValidator? = null)

A class representing a command line option

Link copied to clipboard

A class representing a context for creating a CommanderOption

Link copied to clipboard
Link copied to clipboard

The result of a parse operation

Link copied to clipboard

Error thrown in runtime when the syntax of the command is not valid

Link copied to clipboard

Error thrown when an argument is passed, but not expected

Link copied to clipboard

Error thrown when a non-existing option is passed

Link copied to clipboard

Error thrown when a sub-command is passed, but not expected

Link copied to clipboard
data class CommanderValue(val value: String?)

A wrapper for a string-encoded value

Link copied to clipboard

Base class for exceptions thrown when a value is not valid

Link copied to clipboard

A transformer for a string-encoded value

Link copied to clipboard

A transformer lambda for a string-encoded value

Link copied to clipboard

A collection of common CommanderValueTransformer implementations

Link copied to clipboard

A validator for a string-encoded value

Link copied to clipboard

A validator lambda for a string-encoded value

Link copied to clipboard

A collection of common CommanderValueValidator implementations

Link copied to clipboard

Error thrown when an argument is not valid

Functions

Link copied to clipboard

Create a new command

Link copied to clipboard
Link copied to clipboard