Documentation
¶
Overview ¶
Package ui provides terminal user interface components for the OCFP CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ASCII bool //nolint:gochecknoglobals // global rendering toggle for UI tables
ASCII controls whether Render prints ASCII-only tables. Defaults to false (use Unicode box-drawing where supported).
Functions ¶
Types ¶
type Section ¶
type Section struct {
Title string `json:"title" yaml:"title"`
Headers []string `json:"headers" yaml:"headers"`
Rows [][]string `json:"rows" yaml:"rows"`
}
Section is a titled table with headers and rows.
type Table ¶
type Table struct {
Title string `json:"title" yaml:"title"`
Summary string `json:"summary" yaml:"summary"`
Sections []Section `json:"sections" yaml:"sections"`
}
Table represents a CLI-friendly plan with titled sections.
func (*Table) AddSection ¶
AddSection adds a new section to the table.
func (*Table) AddSeparator ¶
func (t *Table) AddSeparator()
AddSeparator adds a separator row to the current section.
func (*Table) SetHeaders ¶
SetHeaders sets the headers for the table (creates a single section).