tui

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tui renders a form.Field tree as an interactive terminal form using the charmbracelet huh library. It is the bridge between clic's UI-agnostic field description and a concrete, runnable form; the field-to-value assembly is kept separate from the rendering so it can be tested without a terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptBody

func PromptBody(fields []form.Field) (map[string]any, error)

PromptBody renders an interactive form for the given fields and returns the collected values assembled into a request-body map. Optional fields left blank are omitted from the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL