• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AntonKosov / git-backups / 17042056604

18 Aug 2025 01:29PM UTC coverage: 84.649% (+34.6%) from 50.0%
17042056604

push

github

9b97f7
VanyaKosov
Added ability to communicate with Github

Closes #45

38 of 46 new or added lines in 1 file covered. (82.61%)

15 existing lines in 1 file now uncovered.

193 of 228 relevant lines covered (84.65%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/git-backups/main.go
1
package main
2

3
import (
4
        "context"
5
        "log/slog"
6
        "os"
7

8
        "github.com/AntonKosov/git-backups/internal/clog"
9
        "github.com/AntonKosov/git-backups/internal/config"
10
        "github.com/AntonKosov/git-backups/internal/git"
11
        "github.com/AntonKosov/git-backups/internal/git/backup"
12
        "github.com/AntonKosov/git-backups/internal/launcher"
13
)
14

UNCOV
15
func main() {
×
UNCOV
16
        h := clog.NewHandler(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelDebug}))
×
UNCOV
17
        slog.SetDefault(slog.New(h))
×
UNCOV
18
        ctx := context.Background()
×
UNCOV
19

×
UNCOV
20
        conf, err := config.ReadConfig("config.yaml")
×
UNCOV
21
        if err != nil {
×
UNCOV
22
                slog.ErrorContext(ctx, "Failed to read config", "error", err)
×
UNCOV
23
                os.Exit(1)
×
UNCOV
24
        }
×
25

UNCOV
26
        err = launcher.Run(ctx, conf, backup.NewService(git.Git{}))
×
UNCOV
27
        if err != nil {
×
UNCOV
28
                slog.ErrorContext(ctx, "Failed to backup", "error", err)
×
UNCOV
29
                os.Exit(1)
×
UNCOV
30
        }
×
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc