mirror of
https://github.com/Squibid/rph.git
synced 2025-10-20 03:44:04 +00:00
feat: inital commit
- added template subcmd which generates frc project templates
This commit is contained in:
26
main.go
Normal file
26
main.go
Normal file
@@ -0,0 +1,26 @@
|
||||
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()
|
||||
}
|
Reference in New Issue
Block a user