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

Function NewPrinter

cmd/cmd.go:158–164  ·  view source on GitHub ↗

NewPrinter creates a new utils.Printer.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

156
157// NewPrinter creates a new utils.Printer.
158func NewPrinter(cmd *cobra.Command) (*utils.Printer, error) {
159 client, err := NewAPIClient()
160 if err != nil {
161 return nil, err
162 }
163 return utils.NewPrinter(client, cmd, &colorScheme)
164}

Callers 15

NewAnalysisCmdFunction · 0.70
NewScanFileCmdFunction · 0.70
NewScanURLCmdFunction · 0.70
NewRelationshipCmdFunction · 0.70
NewRelationshipsCmdFunction · 0.70
NewHuntingRulesetListCmdFunction · 0.70
NewHuntingRulesetAddCmdFunction · 0.70
NewHuntingRulesetCmdFunction · 0.70
NewFileCmdFunction · 0.70
NewIOCStreamCmdFunction · 0.70

Calls 2

NewPrinterFunction · 0.92
NewAPIClientFunction · 0.70

Tested by

no test coverage detected