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

Function NewMonitorPartnerHashesListCmd

cmd/monitorpartner.go:36–56  ·  view source on GitHub ↗

NewMonitorPartnerHashesListCmd returns a list or monitor_partner according to a filter.

()

Source from the content-addressed store, hash-verified

34
35// NewMonitorPartnerHashesListCmd returns a list or monitor_partner according to a filter.
36func NewMonitorPartnerHashesListCmd() *cobra.Command {
37 cmd := &cobra.Command{
38 Use: "list",
39 Short: "List available monitor partner hashes",
40 Example: monitorPartnerItemsCmdExample,
41 RunE: func(cmd *cobra.Command, args []string) error {
42 p, err := NewPrinter(cmd)
43 if err != nil {
44 return err
45 }
46 return p.PrintCollection(vt.URL("monitor_partner/hashes"))
47 },
48 }
49
50 addIncludeExcludeFlags(cmd.Flags())
51 addFilterFlag(cmd.Flags())
52 addLimitFlag(cmd.Flags())
53 addCursorFlag(cmd.Flags())
54
55 return cmd
56}
57
58// Monitor Partner downloader, it implements the Doer interface. Retrieves the item
59// path to know the destination filename and downloads and save each individual

Callers 1

NewMonitorPartnerCmdFunction · 0.85

Calls 6

PrintCollectionMethod · 0.95
addIncludeExcludeFlagsFunction · 0.85
addFilterFlagFunction · 0.85
addLimitFlagFunction · 0.85
addCursorFlagFunction · 0.85
NewPrinterFunction · 0.70

Tested by

no test coverage detected