File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ require (
10
10
github.com/charmbracelet/lipgloss v1.0.0
11
11
github.com/charmbracelet/x/term v0.2.1
12
12
github.com/hashicorp/go-version v1.7.0
13
+ github.com/lmittmann/tint v1.0.7
13
14
github.com/pubgo/dix v0.3.20-alpha.1
14
15
github.com/pubgo/funk v0.5.64-alpha.1
15
16
github.com/rs/zerolog v1.33.0
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
57
57
github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
58
58
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
59
59
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 =
60
62
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY =
61
63
github.com/lucasb-eyer/go-colorful v1.2.0 /go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0 =
62
64
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA =
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
- import "github.com/pubgo/fastcommit/bootstrap"
3
+ import (
4
+ "github.com/pubgo/fastcommit/bootstrap"
5
+ )
4
6
5
7
func main () {
6
8
bootstrap .Main ()
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments