output

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BitbucketBlue is the standard Bitbucket brand color.
	BitbucketBlue = lipgloss.Color("#0052CC")
	// Bitbucket blue
	Blue = lipgloss.NewStyle().Foreground(BitbucketBlue)
	// Status colors
	Green   = lipgloss.NewStyle().Foreground(lipgloss.Color("#36B37E"))
	Red     = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF5630"))
	Yellow  = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFAB00"))
	Cyan    = lipgloss.NewStyle().Foreground(lipgloss.Color("#00B8D9"))
	Muted   = lipgloss.NewStyle().Foreground(lipgloss.Color("#97A0AF"))
	Bold    = lipgloss.NewStyle().Bold(true)
	Header  = lipgloss.NewStyle().Bold(true).Foreground(BitbucketBlue)
	Success = Green
	Error   = Red
	Warning = Yellow
)

Functions

func Format

func Format(format string, jsonData interface{}, headers []string, rows [][]string) error

Format dispatches output to the appropriate renderer based on format.

func RenderJSON

func RenderJSON(v interface{}) error

RenderJSON outputs the given value as indented JSON.

func RenderMarkdown

func RenderMarkdown(md string)

RenderMarkdown renders a markdown string for terminal display.

func RenderTable

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

RenderTable outputs a formatted table with headers and rows.

func StatusColor

func StatusColor(status string) lipgloss.Style

StatusColor returns the appropriate style for a given status string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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