yera.runtime.handlers.form.ansi

ANSI form handler: asks each field of a form at the terminal.

Symbols

class ANSIFormHandler — Asks for each field of a form at the terminal and submits the answers.

ANSIFormHandler

Inherits: BaseHandler

Asks for each field of a form at the terminal and submits the answers.

Methods

push — Ask the form's questions and submit the answers.

ANSIFormHandler.push

push(
    event: OutputEvent,
) → None

Ask the form's questions and submit the answers.

Parameters

event
type: OutputEvent

An output event carrying FormData.

Raises

TypeError

If the event data is not FormData.

ValueError

If the user cancels a question.