This commit introduces two key improvements to the application: 1. **Authenticated GitHub API Access:** The GitHub client now uses a personal access token (PAT) from the `GITHUB_TOKEN` environment variable if it is available. This increases the rate limit for GitHub API requests, making the tool more robust for users who need to collect a large number of repositories. 2. **Structured Logging:** The application now uses the standard library's `slog` package for structured logging. A `--verbose` flag has been added to the root command to control the log level, allowing for more detailed output when needed. This makes the application's output more consistent and easier to parse.
43 lines
1.7 KiB
Modula-2
43 lines
1.7 KiB
Modula-2
module github.com/Snider/Borg
|
|
|
|
go 1.24.3
|
|
|
|
require (
|
|
github.com/go-git/go-git/v5 v5.16.3
|
|
github.com/google/go-github/v39 v39.2.0
|
|
github.com/schollz/progressbar/v3 v3.18.0
|
|
github.com/spf13/cobra v1.10.1
|
|
golang.org/x/mod v0.29.0
|
|
golang.org/x/net v0.46.0
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
|
|
)
|
|
|
|
require (
|
|
dario.cat/mergo v1.0.0 // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/ProtonMail/go-crypto v1.1.6 // indirect
|
|
github.com/cloudflare/circl v1.6.1 // indirect
|
|
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
|
|
github.com/emirpasic/gods v1.18.1 // indirect
|
|
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
|
|
github.com/go-git/go-billy/v5 v5.6.2 // indirect
|
|
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
|
|
github.com/golang/protobuf v1.5.4 // indirect
|
|
github.com/google/go-querystring v1.1.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
|
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
|
github.com/pjbgf/sha1cd v0.3.2 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
|
|
github.com/skeema/knownhosts v1.3.1 // indirect
|
|
github.com/spf13/pflag v1.0.10 // indirect
|
|
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
|
golang.org/x/crypto v0.43.0 // indirect
|
|
golang.org/x/sys v0.37.0 // indirect
|
|
golang.org/x/term v0.36.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
google.golang.org/protobuf v1.33.0 // indirect
|
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
|
)
|