Documentation
¶
Overview ¶
Package output owns projection and embedded jq output.
Index ¶
- func CellText(s string) string
- func Discovery(w io.Writer, fields []string) error
- func Fields(raw string, available []string) ([]string, error)
- func Grid(w io.Writer, headers []string, rows [][]string) error
- func JSON(ctx context.Context, w io.Writer, record map[string]any, fields []string, ...) error
- func JSONList(ctx context.Context, w io.Writer, records []map[string]any, fields []string, ...) error
- func KeyValues(w io.Writer, pairs [][2]string) error
- func MultilineText(s string) string
- func Table(w io.Writer, headers []string, rows [][]string, piped bool, ...) error
- func Text(s string) string
- func UnsafeControl(r rune) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CellText ¶
CellText keeps untrusted text in one terminal/TSV cell. JSON retains the original data; TSV follows the existing Python escaping contract.
func MultilineText ¶
MultilineText preserves readable layout while escaping terminal instructions.
func Table ¶
Table optionally links terminal cells. Links are added only after escaping and measuring labels; untrusted values can never supply terminal controls.
func UnsafeControl ¶
UnsafeControl identifies external controls, including bidi formatting. Trusted ANSI styling and links are applied only after external values are escaped.
Types ¶
This section is empty.