ConfirmationPrompt

class ConfirmationPrompt<T : Any>(firstPrompt: Prompt<T>, secondPrompt: Prompt<T>, valueMismatchMessage: String = "Values do not match, try again")

A prompt that requires the user to enter the same value twice.

You can create an instance of this class by passing in two Prompts to the constructor, or by using the create or createString methods.

Constructors

Link copied to clipboard
constructor(firstPrompt: Prompt<T>, secondPrompt: Prompt<T>, valueMismatchMessage: String = "Values do not match, try again")

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun ask(): T?

Run the prompt, asking the user for input.