Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSVPrinter ¶
type CSVPrinter struct {
PathSupport
Filter
NoHeaders bool
Columns []string
Formatters Formatters
}
func (*CSVPrinter) PrintResult ¶
func (p *CSVPrinter) PrintResult(w io.Writer, result *jnode.Node)
type Formatters ¶
type JSONPrinter ¶
type JSONPrinter struct{}
func (*JSONPrinter) PrintResult ¶
func (p *JSONPrinter) PrintResult(w io.Writer, n *jnode.Node)
type PathSupport ¶ added in v0.4.8
type TablePrinter ¶
type TablePrinter struct {
PathSupport
Filter
NoHeaders bool
Columns []string
Formatters Formatters
}
func (*TablePrinter) PrintHeader ¶
func (p *TablePrinter) PrintHeader(w io.Writer)
func (*TablePrinter) PrintResult ¶
func (p *TablePrinter) PrintResult(w io.Writer, result *jnode.Node)
type ValuePrinter ¶ added in v0.4.8
type ValuePrinter struct {
PathSupport
Name string
}
func NewValuePrinter ¶ added in v0.4.8
func NewValuePrinter(format string, path []string) *ValuePrinter
func (*ValuePrinter) PrintResult ¶ added in v0.4.8
func (p *ValuePrinter) PrintResult(w io.Writer, result *jnode.Node)
type YAMLPrinter ¶
type YAMLPrinter struct{}
func (*YAMLPrinter) PrintResult ¶
func (p *YAMLPrinter) PrintResult(w io.Writer, n *jnode.Node)
Click to show internal directories.
Click to hide internal directories.