forked from activecm/rita-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rita.go
32 lines (25 loc) · 753 Bytes
/
rita.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main
import (
"os"
"runtime"
"github.com/activecm/rita/commands"
"github.com/activecm/rita/config"
"github.com/urfave/cli"
)
// Entry point of ac-hunt
func main() {
app := cli.NewApp()
app.Name = "rita"
app.Usage = "Look for evil needles in big haystacks."
app.Flags = []cli.Flag{commands.ConfigFlag}
cli.VersionPrinter = commands.GetVersionPrinter()
// Change the version string with updates so that a quick help command will
// let the testers know what version of HT they're on
app.Version = config.Version
app.EnableBashCompletion = true
// Define commands used with this application
app.Commands = commands.Commands()
app.Before = commands.SetConfigFilePath
runtime.GOMAXPROCS(runtime.NumCPU())
app.Run(os.Args)
}