Companion

object Companion

Functions

Link copied to clipboard
fun <T : Any> create(firstPrompt: String, secondPrompt: String, valueMismatchMessage: String = "Values do not match, try again", builder: (String) -> Prompt<T>): ConfirmationPrompt<T>

Create a ConfirmationPrompt from two strings which are passed to a builder to construct the prompt instances.

Link copied to clipboard
fun createString(firstPrompt: String, secondPrompt: String, terminal: Terminal, default: String? = null, showDefault: Boolean = false, showChoices: Boolean = true, hideInput: Boolean = false, choices: List<String> = emptyList(), promptSuffix: String = ": ", invalidChoiceMessage: String = "Invalid value, choose from ", valueMismatchMessage: String = "Values do not match, try again"): ConfirmationPrompt<String>

Create a ConfirmationPrompt that uses StringPrompts to ask for input.