create

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.

Example

ConfirmationPrompt.create(
"Delete files?", "Are you sure?"
) { YesNoPrompt(it, terminal) }