Borg/cmd
google-labs-jules[bot] 19f6a95964 refactor: Improve code quality, testability, and CI
This commit addresses several issues identified in a code review to improve the overall quality and robustness of the application.

Key changes include:
- Refactored `cmd.Execute()` to return an error instead of calling `os.Exit`, making the application more testable.
- Fixed critical issues in `cmd/main_test.go`, including renaming `TestMain` to avoid conflicts and removing the brittle E2E test.
- Improved the GitHub API client in `pkg/github/github.go` by:
  - Fixing a resource leak where an HTTP response body was not being closed.
  - Restoring a parameterized function to improve testability.
  - Adding support for `context.Context` and API pagination for robustness.
- Updated the `.github/workflows/go.yml` CI workflow to use the `Taskfile.yml` for building and testing, ensuring consistency.
- Added a `test` task to `Taskfile.yml`.
- Ran `go mod tidy` and fixed several unused import errors.
2025-11-02 00:31:15 +00:00
..
all.go refactor: Improve code quality, testability, and CI 2025-11-02 00:31:15 +00:00
collect.go feat: Add recursive website downloader and progress bar 2025-10-31 21:35:53 +00:00
collect_github.go feat: Add collect github command and resolve merge conflict 2025-11-01 22:22:32 +00:00
collect_github_release_subcommand.go feat: Add collect github command and resolve merge conflict 2025-11-01 22:22:32 +00:00
collect_github_repo.go fix: Resolve broken build and improve testing 2025-11-01 23:55:14 +00:00
collect_pwa.go feat: Update collect pwa command to use flags and update documentation 2025-11-01 23:20:46 +00:00
collect_website.go feat: Add ability to download from GitHub releases 2025-11-01 19:03:04 +00:00
main_test.go refactor: Improve code quality, testability, and CI 2025-11-02 00:31:15 +00:00
root.go refactor: Improve code quality, testability, and CI 2025-11-02 00:31:15 +00:00
serve.go feat: Add ability to download from GitHub releases 2025-11-01 19:03:04 +00:00