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:
Julian Tölle 2025-06-15 16:27:31 +02:00
parent fc1ee70c28
commit f3269de8fe
4 changed files with 104 additions and 95 deletions

18
internal/log/log.go Normal file
View 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,
}),
))
}