Skip to content

Commit

Permalink
simplify main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Sep 6, 2023
1 parent 1a1e559 commit 84697b7
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ import (
)

func main() {
// log := logrus.New()
// log.SetOutput(os.Stdout)
// log.SetLevel(logrus.InfoLevel)

cli.VersionPrinter = func(cCtx *cli.Context) {
fmt.Printf("gobuster version %s\n", libgobuster.VERSION)
if info, ok := debug.ReadBuildInfo(); ok {
Expand All @@ -43,16 +39,15 @@ func main() {
},
},
Version: libgobuster.GetVersion(),
}

app.Commands = []*cli.Command{
dir.Command(),
vhost.Command(),
dns.Command(),
fuzz.Command(),
tftp.Command(),
s3.Command(),
gcs.Command(),
Commands: []*cli.Command{
dir.Command(),
vhost.Command(),
dns.Command(),
fuzz.Command(),
tftp.Command(),
s3.Command(),
gcs.Command(),
},
}

err := app.Run(os.Args)
Expand Down

0 comments on commit 84697b7

Please sign in to comment.