Files
reseed-tools/main.go

33 lines
602 B
Go
Raw Normal View History

2014-12-05 15:22:34 -06:00
package main
import (
"os"
"runtime"
2014-12-05 15:22:34 -06:00
2016-01-24 12:45:59 +01:00
"github.com/martin61/i2p-tools/cmd"
2014-12-05 15:22:34 -06:00
"github.com/codegangsta/cli"
)
func main() {
// use at most half the cpu cores
runtime.GOMAXPROCS(runtime.NumCPU() / 2)
2014-12-05 15:22:34 -06:00
app := cli.NewApp()
2014-12-14 23:32:35 -06:00
app.Name = "i2p-tools"
app.Version = "0.1.6"
2014-12-14 19:06:27 -06:00
app.Usage = "I2P tools and reseed server"
2016-01-24 12:58:28 +01:00
app.Author = "martin61"
app.Email = "noemail"
2014-12-05 15:22:34 -06:00
app.Flags = []cli.Flag{}
app.Commands = []cli.Command{
2014-12-10 01:10:37 -06:00
cmd.NewReseedCommand(),
cmd.NewSu3VerifyCommand(),
2014-12-10 01:10:37 -06:00
cmd.NewKeygenCommand(),
2014-12-14 18:55:14 -06:00
// cmd.NewSu3VerifyPublicCommand(),
2014-12-05 15:22:34 -06:00
}
if err := app.Run(os.Args); err != nil {
os.Exit(1)
}
}