Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" )
build-time vars (injected via -ldflags)
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App holds global state shared by every command.
type Format ¶
Format is an output encoding. Aliased from the render package so the rest of the CLI compiles without changes.
const ( FormatAuto Format = render.Auto FormatTable Format = render.Table FormatList Format = render.List FormatMarkdown Format = render.Markdown FormatJSON Format = render.JSON FormatJSONL Format = render.JSONL FormatCSV Format = render.CSV FormatTSV Format = render.TSV FormatURL Format = render.URL FormatRaw Format = render.Raw )
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output wraps render.Renderer so commands call Emit/Close without changes.
func NewOutput ¶
func NewOutput(w io.Writer, format Format, fields []string, noHeader bool, tmpl string, isTTY, color bool, width int) (*Output, error)
NewOutput builds an Output. isTTY and color control ANSI emission; width is the terminal column count (0 = no limit).
Click to show internal directories.
Click to hide internal directories.