From 5389e1a5d26fdbf2441fa5a1e101999e8449b9d1 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 3 Feb 2025 01:12:45 -0500 Subject: Batman --- main.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..a9032a4 --- /dev/null +++ b/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "context" + "log/slog" + "os" + + "github.com/ChausseBenjamin/rafta/internal/app" + "github.com/ChausseBenjamin/rafta/internal/logging" +) + +func main() { + cmd := app.Command() + + if err := cmd.Run(context.Background(), os.Args); err != nil { + slog.Error("Program quit unexpectedly", logging.ErrKey, err) + os.Exit(1) + } +} -- cgit v1.2.3