File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require (
88 github.com/google/uuid v1.6.0
99 github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf
1010 github.com/jedib0t/go-pretty/v6 v6.5.8
11+ github.com/lmittmann/tint v1.0.4
1112 github.com/spf13/cobra v1.8.0
1213 github.com/spf13/pflag v1.0.5
1314 github.com/spf13/viper v1.18.2
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
3434github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
3535github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
3636github.com/kr/text v0.2.0 /go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE =
37+ github.com/lmittmann/tint v1.0.4 h1:LeYihpJ9hyGvE0w+K2okPTGUdVLfng1+nDNVR4vWISc =
38+ github.com/lmittmann/tint v1.0.4 /go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE =
3739github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY =
3840github.com/magiconair/properties v1.8.7 /go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0 =
3941github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U =
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
1010 "os/exec"
1111 "strings"
1212
13+ "github.com/lmittmann/tint"
1314 "github.com/spf13/cobra"
1415 "github.com/spf13/viper"
1516 "github.com/stackitcloud/stackit-cli/internal/pkg/config"
@@ -37,7 +38,7 @@ type Printer struct {
3738
3839// Creates a new printer, including setting up the default logger.
3940func NewPrinter () * Printer {
40- logger := slog .New (slog . NewTextHandler (os .Stderr , & slog. HandlerOptions {AddSource : false , Level : slog .LevelDebug }))
41+ logger := slog .New (tint . NewHandler (os .Stderr , & tint. Options {AddSource : false , Level : slog .LevelDebug }))
4142 slog .SetDefault (logger )
4243
4344 return & Printer {}
You can’t perform that action at this time.
0 commit comments