mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-07 18:27:03 +00:00
refactor(cmd): use factories instead of global cobra command structs
This enables us to create new commands for e2e tests.
This commit is contained in:
parent
fc1ee70c28
commit
f3269de8fe
4 changed files with 104 additions and 95 deletions
18
internal/log/log.go
Normal file
18
internal/log/log.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package log
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/lmittmann/tint"
|
||||
)
|
||||
|
||||
func init() {
|
||||
slog.SetDefault(slog.New(
|
||||
tint.NewHandler(os.Stderr, &tint.Options{
|
||||
Level: slog.LevelDebug,
|
||||
TimeFormat: time.RFC3339,
|
||||
}),
|
||||
))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue