MCPcopy Create free account
hub / github.com/VirusTotal/vt-cli / NewPrinter

Function NewPrinter

utils/printer.go:45–47  ·  view source on GitHub ↗

NewPrinter creates a new object printer.

(client *APIClient, cmd *cobra.Command, colors *yaml.Colors)

Source from the content-addressed store, hash-verified

43
44// NewPrinter creates a new object printer.
45func NewPrinter(client *APIClient, cmd *cobra.Command, colors *yaml.Colors) (*Printer, error) {
46 return &Printer{client: client, cmd: cmd, colors: colors}, nil
47}
48
49// Print prints the provided data to stdout.
50func (p *Printer) Print(data interface{}) error {

Callers 1

NewPrinterFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected