yera.runtime.handlers.tree_selector.ansi

ANSI tree selector handler.

Symbols

class ANSITreeSelectorHandler — Render an interactive multi-select tree in an ANSI terminal.

ANSITreeSelectorHandler

Inherits: BaseHandler

Render an interactive multi-select tree in an ANSI terminal.

Methods

push — Display the tree and submit the selected leaf values.

ANSITreeSelectorHandler.push

push(
    event: OutputEvent,
) → None

Display the tree and submit the selected leaf values.

Parameters

event
type: OutputEvent

An output event carrying TreeSelectorData.

Raises

TypeError

If the event data is not TreeSelectorData.