Property

sealed interface Property<T : Any>

TODO

Properties passed by the command line.

Parameters

T

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val description: String?
Link copied to clipboard
abstract val multiple: Boolean
Link copied to clipboard
abstract val names: Set<String>
Link copied to clipboard
abstract val optional: Boolean
Link copied to clipboard
abstract val regex: Regex?
Link copied to clipboard
abstract val tag: String?

TODO To group properties (for listing or alternatives). I.e.: '|alternate|' for grouping options that are exclusive or 'Common Options' to group in help

Link copied to clipboard
abstract val type: KClass<T>
Link copied to clipboard
abstract val values: List<T>

Functions

Link copied to clipboard
abstract fun addValue(value: String): Property<T>
Link copied to clipboard
abstract fun addValues(value: Property<*>): Property<T>
Link copied to clipboard
open fun check(component: String, namePattern: Regex)
Link copied to clipboard
open fun typeText(): String