Package-level declarations
Functions
Link copied to clipboard
context(step: Step.State)
fun <T, O : SelectOption<T>> Terminal.__select(message: String, options: Iterable<O>, sortedSelector: (SelectOption<out T>) -> Comparable<*>?? = null, option: CLIOption<T?>? = null, keyOptions: Map<String, SelectKeyOption>? = null, defaultCursor: Int? = null, onHover: (option: O, index: Int) -> Unit? = null, onSelect: (animation: Animation<*>) -> Unit? = null, filterKey: String = "f", details: SelectDetails<T>? = null, returnable: Boolean = true, pageSize: Int = 10): T
fun <T, O : SelectOption<T>> Terminal.
Adds CLI option + undo
Link copied to clipboard
context(step: Step.State)
fun <T> Terminal.multiselect(title: String, options: () -> List<Option<T>>, option: CLIOption<List<T>?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, defaultOptions: List<T> = emptyList(), details: (data: T, index: Int) -> Widget?? = null, onHover: suspend (option: Option<T>, index: Int) -> Unit? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): List<T>
fun <T> Terminal.multiselect(title: String, options: () -> List<Option<T>>, option: CLIOption<List<T>?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, defaultOptions: List<T> = emptyList(), details: (data: T, index: Int) -> Widget?? = null, onHover: suspend (option: Option<T>, index: Int) -> Unit? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): List<T>
context(step: Step.State)
fun <T> Terminal.multiselect(title: String, options: List<Option<T>>, option: CLIOption<List<T>?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, defaultOptions: List<T> = emptyList(), details: (data: T, index: Int) -> Widget?? = null, onHover: suspend (option: Option<T>, index: Int) -> Unit? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): List<T>
fun <T> Terminal.multiselect(title: String, options: List<Option<T>>, option: CLIOption<List<T>?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, defaultOptions: List<T> = emptyList(), details: (data: T, index: Int) -> Widget?? = null, onHover: suspend (option: Option<T>, index: Int) -> Unit? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): List<T>
Link copied to clipboard
context(step: Step.State)
fun <T, O : SelectOption<T>> Terminal.select(title: String, options: () -> List<O>, option: Triple<CLIOption<*>, String?, () -> T?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, onHover: suspend (option: O, index: Int) -> Unit? = null, details: (data: T, index: Int) -> Widget?? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): T
fun <T, O : SelectOption<T>> Terminal.select(title: String, options: () -> List<O>, option: Triple<CLIOption<*>, String?, () -> T?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, onHover: suspend (option: O, index: Int) -> Unit? = null, details: (data: T, index: Int) -> Widget?? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): T
Adds CLI option + undo
context(step: Step.State)
fun <T, O : SelectOption<T>> Terminal.select(title: String, options: List<O>, option: Triple<CLIOption<*>, String?, () -> T?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, onHover: suspend (option: O, index: Int) -> Unit? = null, details: (data: T, index: Int) -> Widget?? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): T
fun <T, O : SelectOption<T>> Terminal.select(title: String, options: List<O>, option: Triple<CLIOption<*>, String?, () -> T?>? = null, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, onHover: suspend (option: O, index: Int) -> Unit? = null, details: (data: T, index: Int) -> Widget?? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): T
Link copied to clipboard
context(step: Step.State)
fun <T, O : SelectOption<T>> Terminal.select3(title: String, options: List<O>, option: () -> T? = { null!! }, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, onHover: suspend (option: O, index: Int) -> Unit? = null, details: (data: T, index: Int) -> Widget?? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): T
fun <T, O : SelectOption<T>> Terminal.select3(title: String, options: List<O>, option: () -> T? = { null!! }, keyOptions: Map<String, KeyOption> = emptyMap(), defaultCursor: Int? = null, onHover: suspend (option: O, index: Int) -> Unit? = null, details: (data: T, index: Int) -> Widget?? = null, pageSize: Int = 10, maxPages: Int = 20, returnable: Boolean = true): T