MCPcopy Create free account
hub / github.com/algolia/cli / Printer

Interface Printer

pkg/printers/interface.go:16–19  ·  view source on GitHub ↗

Printer is an interface that knows how to print interfaces.

Source from the content-addressed store, hash-verified

14
15// Printer is an interface that knows how to print interfaces.
16type Printer interface {
17 // Print receives an interface, formats it and prints it.
18 Print(*iostreams.IOStreams, interface{}) error
19}
20
21// PrintOptions struct defines a struct for various print options
22type PrintOptions struct {

Callers 8

runTailCmdFunction · 0.95
PrintMethod · 0.65
PrintRunSummaryFunction · 0.65
printTargetsFunction · 0.65
runGetCmdFunction · 0.65
runDeleteCmdFunction · 0.65
runBrowseCmdFunction · 0.65
runSearchCmdFunction · 0.65

Implementers 4

PrintFlagspkg/cmdutil/print_flags.go
JSONPathPrinterpkg/printers/jsonpath.go
GoTemplatePrinterpkg/printers/template.go
JSONPrinterpkg/printers/json.go

Calls

no outgoing calls

Tested by

no test coverage detected