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

Function rawFromReader

cmd/collection.go:289–299  ·  view source on GitHub ↗
(reader utils.StringReader)

Source from the content-addressed store, hash-verified

287}
288
289func rawFromReader(reader utils.StringReader) string {
290 var lines []string
291 for {
292 next, err := reader.ReadString()
293 if err == io.EOF {
294 break
295 }
296 lines = append(lines, next)
297 }
298 return strings.Join(lines, " ")
299}
300
301func descriptorsFromReader(reader utils.StringReader) map[string][]objectDescriptor {
302 descriptors := make(map[string][]objectDescriptor)

Callers 2

NewCollectionCreateCmdFunction · 0.85
NewCollectionUpdateCmdFunction · 0.85

Calls 1

ReadStringMethod · 0.65

Tested by

no test coverage detected