Vibe.TUI.ToolWidget behaviour (vibe v0.2.0)

Copy Markdown View Source

Behaviour and dispatcher for built-in tool widgets.

Summary

Functions

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Intentional facade for the public Vibe API boundary.

Types

tool()

@type tool() :: map()

Callbacks

render(tool, pos_integer, t)

@callback render(tool(), pos_integer(), Vibe.TUI.Theme.t()) :: [IO.chardata()]

Functions

block(tool, width, theme, opts \\ [])

@spec block(tool(), pos_integer(), Vibe.TUI.Theme.t(), keyword()) :: [IO.chardata()]

compact_summary(tool)

error_lines(error, width, theme)

Intentional facade for the public Vibe API boundary.

format_error(error)

Intentional facade for the public Vibe API boundary.

format_value(value)

generic_lines(tool, width, theme)

inspect_line(line, width, theme)

Intentional facade for the public Vibe API boundary.

inspect_lines(value, width, theme)

Intentional facade for the public Vibe API boundary.

output(tool)

output_line(line, width)

Intentional facade for the public Vibe API boundary.

params(tool)

plain_line(line, width, theme, opts \\ [])

Intentional facade for the public Vibe API boundary.

plain_lines(value, width, theme, opts \\ [])

Intentional facade for the public Vibe API boundary.

render(display, width, theme)

@spec render(tool(), pos_integer(), Vibe.TUI.Theme.t()) :: [IO.chardata()]

render_display(display, width, theme)

single_line(value)

Intentional facade for the public Vibe API boundary.

source_lines(lines, language, width, theme)

Intentional facade for the public Vibe API boundary.

status(tool)

Intentional facade for the public Vibe API boundary.

status_bg(text, status, theme)

Intentional facade for the public Vibe API boundary.

status_icon(status, theme)

Intentional facade for the public Vibe API boundary.

summarize_value(value, limit)

title(tool, theme, opts \\ [])

@spec title(tool(), Vibe.TUI.Theme.t(), keyword()) :: IO.chardata()

Intentional facade for the public Vibe API boundary.

title(tool, width, theme, opts)

@spec title(tool(), pos_integer() | nil, Vibe.TUI.Theme.t(), keyword()) ::
  IO.chardata()

Intentional facade for the public Vibe API boundary.