Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Out io.Writer = os.Stdout
Out is the writer used by Print/PrintRaw. Tests swap this to a bytes.Buffer.
Functions ¶
func PrintDetail ¶
PrintDetail writes a vertical key-value layout to w. Labels are right-padded to align values. Empty values are skipped.
func PrintRaw ¶
func PrintRaw(data json.RawMessage) error
PrintRaw prints raw JSON to Out (used when --format json and we have raw API data).
Types ¶
type CSVFormatter ¶
type CSVFormatter struct{}
type JSONFormatter ¶
type JSONFormatter struct{}
Click to show internal directories.
Click to hide internal directories.