mirror of
https://github.com/Squibid/rph.git
synced 2025-10-19 19:34:04 +00:00
27 lines
380 B
Go
27 lines
380 B
Go
package main
|
|
|
|
import (
|
|
"log/slog"
|
|
"os"
|
|
"time"
|
|
|
|
"rph/state"
|
|
"rph/cmd"
|
|
|
|
"github.com/lmittmann/tint"
|
|
"github.com/mattn/go-colorable" // needed for windows :(
|
|
)
|
|
|
|
func main() {
|
|
state.Setup()
|
|
|
|
slog.SetDefault(slog.New(
|
|
tint.NewHandler(colorable.NewColorable(os.Stdout), &tint.Options{
|
|
Level: slog.LevelDebug,
|
|
TimeFormat: time.Kitchen,
|
|
}),
|
|
))
|
|
|
|
cmd.Execute()
|
|
}
|