FILE / ScuroNeko/mtg

main.go

Исходный файл и его история в репозитории.
FILE 24add0dce402868d9246bfd72001c453411c0bab
Files
mtg/main.go
T
2021-03-10 18:08:25 +03:00

29 lines
614 B
Go

package main
import (
"math/rand"
"time"
"github.com/alecthomas/kong"
)
var version = "dev" // has to be set by ldflags
type CLI struct {
GenerateSecret cliCommandGenerateSecret `cmd help:"Generate new proxy secret"` // nolint: govet
Access cliCommandAccess `cmd help:"Print access information."` // nolint: govet
Version kong.VersionFlag `help:"Print version."`
}
func main() {
rand.Seed(time.Now().UTC().UnixNano())
cli := &CLI{}
ctx := kong.Parse(cli, kong.Vars{
"domain_front": "amazonaws.com",
"version": version,
})
ctx.FatalIfErrorf(ctx.Run(cli))
}