Documentation
¶
Overview ¶
Package printer renders cinc command output in a selectable format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format string
Format identifies an output rendering.
func ParseFormat ¶
ParseFormat converts a format name into a Format, rejecting unknown names.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer renders command results to a writer in a fixed format.
func (*Printer) Value ¶
Value renders an arbitrary structured command result. For server-object payloads (roles, environments, clients, …) the human format is pretty- printed JSON: that's already what `knife show` emits, it stays grepable, and inventing per-type human renderers would diverge from how Chef admins read these objects today.