blob: 09e9412599a4f1d86d1348570f7abec66e36fd6c (
plain)
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
|
package main
import (
"log/slog"
"os"
"github.com/urfave/cli/v2"
"git.gabrielgio.me/dict/cmd/importer"
"git.gabrielgio.me/dict/cmd/ui"
)
func main() {
app := &cli.App{
Name: "dict",
Usage: "interactive dictionary",
Commands: []*cli.Command{
importer.ImportCommand,
ui.UICommand,
},
}
if err := app.Run(os.Args); err != nil {
slog.Error("Error running application", "error", err)
os.Exit(1)
}
}
|