class

Term::Prompt::EnhancedConfirm

Inherits Reference / Object

A class responsible for rendering enhanced confirmation prompts Used by {Prompt} to display confirmation with destructive operation support.

@api private

Constants

CONFIRM_HELP = "(Type 'yes' to confirm)"
DESTRUCTIVE_HELP = "(Type 'yes' to confirm destructive action)"
DOUBLE_CONFIRM_HELP = "(Type 'yes' twice to confirm)"

Constructors

new(prompt : Prompt, **options)
Source

Instance methods

call(question : String, &block : EnhancedConfirm -> )

Call the enhanced confirmation prompt

Source
keybackspace
Source
keydelete
Source
keyenter
Source
keypress(key, event)

Handle key events

Source
keyreturn
Source
result

Get the confirmation result

Source