MCPcopy Index your code
hub / github.com/VirusTotal/vt-cli / PrintObject

Method PrintObject

utils/printer.go:150–154  ·  view source on GitHub ↗

PrintObject prints the specified object to stdout.

(obj *vt.Object)

Source from the content-addressed store, hash-verified

148
149// PrintObject prints the specified object to stdout.
150func (p *Printer) PrintObject(obj *vt.Object) error {
151 objs := make([]*vt.Object, 1)
152 objs[0] = obj
153 return p.PrintObjects(objs)
154}
155
156// GetAndPrintObjects retrieves objects from the specified endpoint and prints
157// them. The endpoint must contain a %s placeholder that will be replaced with

Callers 7

NewHuntingRulesetAddCmdFunction · 0.95
NewCollectionCreateCmdFunction · 0.95
NewCollectionUpdateCmdFunction · 0.95
DoMethod · 0.80
DoMethod · 0.80

Calls 1

PrintObjectsMethod · 0.95

Tested by

no test coverage detected