Package-level declarations

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var onStepComplete: () -> Unit?

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

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>
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>
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

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
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
Link copied to clipboard
context(step: Step.State)
fun <T> Terminal.withStep(returnable: Boolean, block: (onAnimate: (widget: Widget) -> Unit, onDone: (animation: Animation<*>, throwable: Throwable?) -> Unit) -> T): T