Skip to content

Commit c604f89

Browse files
committed
fix: barry quick fix, 2025-04-28 21:07:17
1 parent 431724c commit c604f89

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/charmbracelet/lipgloss v1.0.0
1111
github.com/charmbracelet/x/term v0.2.1
1212
github.com/hashicorp/go-version v1.7.0
13+
github.com/lmittmann/tint v1.0.7
1314
github.com/pubgo/dix v0.3.20-alpha.1
1415
github.com/pubgo/funk v0.5.64-alpha.1
1516
github.com/rs/zerolog v1.33.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
5757
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
5858
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
5959
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
60+
github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y=
61+
github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
6062
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
6163
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
6264
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package main
22

3-
import "github.com/pubgo/fastcommit/bootstrap"
3+
import (
4+
"github.com/pubgo/fastcommit/bootstrap"
5+
)
46

57
func main() {
68
bootstrap.Main()

utils/log.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package utils
2+
3+
import (
4+
"log/slog"
5+
"os"
6+
"time"
7+
8+
"github.com/lmittmann/tint"
9+
)
10+
11+
func init() {
12+
slog.SetDefault(slog.New(
13+
tint.NewHandler(os.Stdout, &tint.Options{
14+
Level: slog.LevelDebug,
15+
TimeFormat: time.Kitchen,
16+
AddSource: true,
17+
}),
18+
))
19+
}

0 commit comments

Comments
 (0)