Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = cobra.Command{ Use: "run", Short: "Execute the scanner", Long: color.GreenString(helpLong), Run: func(cmd *cobra.Command, args []string) { scan.Exec(func() error { scanner := new(scan.Scanner) scanner.SetPath(dir) switch mode { case "md5": scanner.SetMatcher(new(scan.Md5Matcher)) case "hex": scanner.SetMatcher(new(scan.HexMatcher)) default: return errors.New("Match search pattern is not sure") } if code == "" { return errors.New("Match value can not be empty can be md5 or hexadecimal string") } if res, err := scanner.Search(code); err != nil { return err } else { scan.Output(out, scanner, res) table.WriteTables(table.CommonTemplate, res) } return nil }) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.