MCPcopy
hub / github.com/OJ/gobuster / main

Function main

main.go:22–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20)
21
22func 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}

Callers

nothing calls this directly

Calls 11

GetVersionFunction · 0.92
CommandFunction · 0.92
CommandFunction · 0.92
CommandFunction · 0.92
CommandFunction · 0.92
CommandFunction · 0.92
CommandFunction · 0.92
CommandFunction · 0.92
PrintfMethod · 0.80
RunMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected