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

Function NewScanCmd

cmd/scan.go:299–311  ·  view source on GitHub ↗

NewScanCmd returns a new instance of the 'scan' command.

()

Source from the content-addressed store, hash-verified

297
298// NewScanCmd returns a new instance of the 'scan' command.
299func NewScanCmd() *cobra.Command {
300
301 cmd := &cobra.Command{
302 Use: "scan",
303 Short: "Scan files or URLs",
304 Long: scanCmdHelp,
305 }
306
307 cmd.AddCommand(NewScanURLCmd())
308 cmd.AddCommand(NewScanFileCmd())
309
310 return cmd
311}
312
313func addOpenInVTFlag(flags *pflag.FlagSet) {
314 flags.BoolP(

Callers 1

NewVTCommandFunction · 0.85

Calls 2

NewScanURLCmdFunction · 0.85
NewScanFileCmdFunction · 0.85

Tested by

no test coverage detected