diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/player/main.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cmd/player/main.go b/cmd/player/main.go index 02a9113..771664f 100644 --- a/cmd/player/main.go +++ b/cmd/player/main.go @@ -23,17 +23,6 @@ import ( "codeberg.org/snonux/player/internal/thumb" ) -func main() { - if err := run(os.Args[1:]); err != nil { - slog.Error("fatal", "err", err) - os.Exit(1) - } -} - -func run(args []string) error { - return runWithSignal(args, nil) -} - // appDeps bundles all wired service-layer dependencies. type appDeps struct { store repository.Store @@ -63,6 +52,17 @@ func parseVersionFlag(args []string) (bool, error) { return *versionFlag, nil } +func main() { + if err := run(os.Args[1:]); err != nil { + slog.Error("fatal", "err", err) + os.Exit(1) + } +} + +func run(args []string) error { + return runWithSignal(args, nil) +} + // buildLogger creates a slog.Logger aligned with the named log level. func buildLogger(logLevel string) *slog.Logger { var level slog.Level |
