Artifact 60ed5dcd030d166cbc5f31195a5878efbb15680af9b77b458b87327e556758a2:
- File
cmd/edgesync/main.go
— part of check-in
[38efed7a12]
at
2026-08-12 20:50:57
on branch main
— chore(deps): migrate to go-libfossil v0.9.0 (#195)
* chore(deps): migrate to go-libfossil v0.9.0 (renamed module path)
- import path danmestas/libfossil → danmestas/go-libfossil everywhere - CloneOpts.ProjectCode removed upstream; assert via CloneResult instead - Timeline now takes TimelineOpts (cursor pagination, newest-first) - testutil.HasFossil removed; check FossilBinary() != ""
* ci: retrigger checks
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> (user: [email protected], size: 794) [annotate] [blame] [check-ins using]
package main import ( "fmt" "os" "github.com/alecthomas/kong" _ "github.com/danmestas/go-libfossil/db/driver/modernc" ) // Build-time variables, populated via -ldflags by GoReleaser. var ( version = "dev" commit = "none" date = "unknown" ) func main() { // Handle --version / -V at the top level. Done before Kong.Parse so // it doesn't collide with sub-flags like `repo extract --version`. if len(os.Args) == 2 && (os.Args[1] == "--version" || os.Args[1] == "-V") { fmt.Printf("edgesync %s (commit %s, built %s)\n", version, commit, date) return } var c CLI ctx := kong.Parse(&c, kong.Name("edgesync"), kong.Description("EdgeSync — Fossil repo operations, NATS sync, and bridge"), kong.UsageOnError(), ) err := ctx.Run(&c.Globals) ctx.FatalIfErrorf(err) }