output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type Printer

type Printer struct {
	Format  string
	Writer  io.Writer
	NoColor bool
	Quiet   bool
}

func NewPrinter

func NewPrinter(format string, noColor, quiet bool) *Printer

func (*Printer) PrintDetail

func (p *Printer) PrintDetail(pairs []KeyValue)

PrintDetail renders key-value pairs for a single record view.

func (*Printer) PrintJSON

func (p *Printer) PrintJSON(v interface{})

PrintJSON outputs v as indented JSON. Used for full-fidelity API responses.

func (*Printer) PrintTable

func (p *Printer) PrintTable(headers []string, rows [][]string)

PrintTable renders tabular data in the configured format. In quiet mode, only the first column (IDs) is printed.

Jump to

Keyboard shortcuts

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