This commit is contained in:
2026-02-09 00:42:06 -08:00
commit e6e85b6e11
12 changed files with 708 additions and 0 deletions

21
cmd/bsdaily/main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"log/slog"
"os"
"github.com/sneak/bsarchivesegment/internal/bsdaily"
)
func main() {
logger := slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{
Level: slog.LevelInfo,
}))
slog.SetDefault(logger)
if err := bsdaily.Run(); err != nil {
slog.Error("fatal error", "error", err)
os.Exit(1)
}
slog.Info("completed successfully")
}