Documentation
¶
Index ¶
- func Bold(s string) string
- func Dim(s string) string
- func GetFormat(override string) string
- func GetOutputFormat(override string) string
- func GetTermSize() (int, int, error)
- func IsJSON(override string) bool
- func IsJSONL(override string) bool
- func PrintJSON(data any)
- func PrintJSONL(items []map[string]any)
- func PrintTable(headers []string, rows [][]string)
- func PrintTableRight(headers []string, rows [][]string, rightCols ...int)
- func ReadPipeOrFile(filePath string) (string, error)
- func RenderMarkdown(content string) string
- func RenderMarkdownWidth(content string, width int) string
- func SetFormat(f string)
- func Truncate(s string, maxLen int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOutputFormat ¶
func GetTermSize ¶
func PrintJSONL ¶
func PrintTable ¶
PrintTable renders a standard table using go-pretty. Column alignment: first column left, numeric columns auto-detected, last column left.
func PrintTableRight ¶
PrintTableRight renders a table with specific columns right-aligned (1-based column numbers).
func ReadPipeOrFile ¶
func RenderMarkdown ¶
func RenderMarkdownWidth ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.