blob: dc734ca4e53c11ad149c672b81ce01d4cb6e18b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)
}
|