output

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(s string) string

func Dim

func Dim(s string) string

func GetFormat

func GetFormat(override string) string

func GetOutputFormat

func GetOutputFormat(override string) string

func GetTermSize

func GetTermSize() (int, int, error)

func IsJSON

func IsJSON(override string) bool

func IsJSONL

func IsJSONL(override string) bool

func PrintJSON

func PrintJSON(data any)

func PrintJSONL

func PrintJSONL(items []map[string]any)

func PrintTable

func PrintTable(headers []string, rows [][]string)

PrintTable renders a standard table using go-pretty. Column alignment: first column left, numeric columns auto-detected, last column left.

func PrintTableRight

func PrintTableRight(headers []string, rows [][]string, rightCols ...int)

PrintTableRight renders a table with specific columns right-aligned (1-based column numbers).

func ReadPipeOrFile

func ReadPipeOrFile(filePath string) (string, error)

func RenderMarkdown

func RenderMarkdown(content string) string

func RenderMarkdownWidth

func RenderMarkdownWidth(content string, width int) string

func SetFormat

func SetFormat(f string)

func Truncate

func Truncate(s string, maxLen int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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