diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-09 01:07:15 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-09 01:07:15 +0300 |
commit | 34ccc98a942098faefb5f4211b215ff9ccc7ad0e (patch) | |
tree | 7696ab4d7c8d9fb09c7e2575d482517f68824ae3 /main.go |
Начальный
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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) +} |