From 34ccc98a942098faefb5f4211b215ff9ccc7ad0e Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Mon, 9 Dec 2024 01:07:15 +0300 Subject: Начальный MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..dc734ca --- /dev/null +++ b/main.go @@ -0,0 +1,30 @@ +package main + +import ( + "context" + "log" + "os" + + "git.neonxp.ru/neonxp/guessr/cmd/frontend" + "git.neonxp.ru/neonxp/guessr/cmd/importer" + "git.neonxp.ru/neonxp/guessr/cmd/migrator" + "git.neonxp.ru/neonxp/guessr/cmd/serve" + "github.com/urfave/cli/v3" +) + +func main() { + root := &cli.Command{ + Name: "guessr", + Commands: []*cli.Command{ + serve.Command, + migrator.Command, + importer.Command, + frontend.Command, + }, + ErrWriter: os.Stdout, + ExitErrHandler: func(ctx context.Context, c *cli.Command, err error) { + log.Fatal(err) + }, + } + root.Run(context.Background(), os.Args) +} -- cgit v1.2.3