Documentation
¶
Overview ¶
Package render provides styled and markdown output rendering for the Fizzy CLI. The shared output.Writer falls back to JSON for FormatStyled/FormatMarkdown; this package supplies the app-specific rendering.
Index ¶
- func MarkdownDetail(data map[string]any, summary string) string
- func MarkdownList(data []map[string]any, cols Columns, summary string) string
- func MarkdownSummary(data map[string]any, summary string) string
- func StyledDetail(data map[string]any, summary string) string
- func StyledList(data []map[string]any, cols Columns, summary string) string
- func StyledSummary(data map[string]any, summary string) string
- type Column
- type Columns
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownDetail ¶
MarkdownDetail renders a single map as bold-label: value pairs.
func MarkdownList ¶
MarkdownList renders a slice of maps as a GFM table.
func MarkdownSummary ¶
MarkdownSummary renders a single-line summary message for mutations.
func StyledDetail ¶
StyledDetail renders a single map as styled key-value pairs.
func StyledList ¶
StyledList renders a slice of maps as a styled terminal table.
Types ¶
Click to show internal directories.
Click to hide internal directories.