()
| 20 | ) |
| 21 | |
| 22 | func main() { |
| 23 | if _, err := maxprocs.Set(); err != nil { |
| 24 | fmt.Printf("Error on gomaxprocs: %v\n", err) // nolint forbidigo |
| 25 | } |
| 26 | |
| 27 | cli.VersionPrinter = func(_ *cli.Context) { |
| 28 | fmt.Printf("gobuster version %s\n", libgobuster.VERSION) // nolint:forbidigo |
| 29 | if info, ok := debug.ReadBuildInfo(); ok { |
| 30 | fmt.Printf("Build info:\n") // nolint forbidigo |
| 31 | fmt.Printf("%s", info) // nolint forbidigo |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | app := &cli.App{ |
| 36 | Name: "gobuster", |
| 37 | Usage: "the tool you love", |
| 38 | UsageText: "gobuster command [command options]", |
| 39 | Authors: []*cli.Author{ |
| 40 | { |
| 41 | Name: "Christian Mehlmauer (@firefart)", |
| 42 | }, |
| 43 | { |
| 44 | Name: "OJ Reeves (@TheColonial)", |
| 45 | }, |
| 46 | }, |
| 47 | Version: libgobuster.GetVersion(), |
| 48 | Commands: []*cli.Command{ |
| 49 | dir.Command(), |
| 50 | vhost.Command(), |
| 51 | dns.Command(), |
| 52 | fuzz.Command(), |
| 53 | tftp.Command(), |
| 54 | s3.Command(), |
| 55 | gcs.Command(), |
| 56 | }, |
| 57 | } |
| 58 | |
| 59 | err := app.Run(os.Args) |
| 60 | if err != nil { |
| 61 | log.Fatal(err) |
| 62 | } |
| 63 | } |
nothing calls this directly
no test coverage detected