FILE / ScuroNeko/mtg

main.go

Исходный файл и его история в репозитории.
FILE 45ce5c2f613738dd27ba26a5f43b57a8bfc12763
Files
mtg/main.go
T
2026-02-11 11:54:47 +01:00

24 lines
609 B
Go

// mtg is just a command-line application that starts a proxy.
//
// Application logic is how to read a config and configure mtglib.Proxy.
// So, probably you need to read the documentation for mtglib package
// first.
//
// mtglib is a core of the application. The rest of the packages provide
// some default implementations for the interfaces, defined in mtglib.
package main
import (
"github.com/9seconds/mtg/v2/internal/cli"
"github.com/alecthomas/kong"
)
func main() {
cli := &cli.CLI{}
ctx := kong.Parse(cli, kong.Vars{
"version": getVersion(),
})
ctx.FatalIfErrorf(ctx.Run(cli, version))
}