Files
Reseed_Tools/main.go

38 lines
949 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
2020-12-24 10:27:56 -05:00
"github.com/idk/reseed-tools/cmd"
"github.com/urfave/cli"
2014-12-05 15:22:34 -06:00
)
func main() {
2019-06-27 19:49:05 -04:00
// TLS 1.3 is available only on an opt-in basis in Go 1.12.
// To enable it, set the GODEBUG environment variable (comma-separated key=value options) such that it includes "tls13=1".
// To enable it from within the process, set the environment variable before any use of TLS:
2019-04-21 13:10:18 +02:00
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
// use at most half the cpu cores
runtime.GOMAXPROCS(runtime.NumCPU() / 2)
2014-12-05 15:22:34 -06:00
app := cli.NewApp()
app.Name = "i2p-tools-1"
2017-10-15 13:01:07 -05:00
app.Version = "0.1.7"
2014-12-14 19:06:27 -06:00
app.Usage = "I2P tools and reseed server"
app.Author = "eyedeekay"
app.Email = "hankhill19580@gmail.com"
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)
}
}