Files
Reseed_Tools/main.go

44 lines
1.1 KiB
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
2023-01-04 17:26:14 +00:00
"github.com/urfave/cli/v3"
2020-12-24 10:41:16 -05:00
"i2pgit.org/idk/reseed-tools/cmd"
"i2pgit.org/idk/reseed-tools/reseed"
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 = "reseed-tools"
app.Version = reseed.Version
2014-12-14 19:06:27 -06:00
app.Usage = "I2P tools and reseed server"
2023-01-04 17:26:14 +00:00
auth := &cli.Author{
Name: "eyedeekay",
Email: "hankhill19580@gmail.com",
}
app.Authors = append(app.Authors, auth)
2014-12-05 15:22:34 -06:00
app.Flags = []cli.Flag{}
2023-01-04 17:26:14 +00:00
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(),
cmd.NewShareCommand(),
cmd.NewVersionCommand(),
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)
}
}