Borg/pkg
google-labs-jules[bot] 5c65673432 feat: Bug fixes and refactoring
This commit introduces a significant number of bug fixes, refactorings, and improvements to the codebase.

Key changes include:
- Refactored Cobra commands to use `RunE` for better error handling and testing.
- Extracted business logic from command handlers into separate, testable functions.
- Added comprehensive unit tests for the `cmd`, `compress`, `github`, `logger`, and `pwa` packages.
- Added tests for missing command-line arguments, as requested.
- Implemented the `borg all` command to clone all public repositories for a GitHub user or organization.
- Restored and improved the `collect pwa` functionality.
- Removed duplicate code and fixed various bugs.
- Addressed a resource leak in the `all` command.
- Improved error handling in the `pwa` package.
- Refactored `main.go` to remove duplicated logic.
- Fixed several other minor bugs and inconsistencies.
- Made tests platform-independent by removing hardcoded `/dev/null` paths.
- Fixed potential panics in tests by adding `nil` checks for errors.
- Fixed test state leakage by using `t.Cleanup` to restore mocked package-level variables.
- Added validation for command-line flags.
- Ensured output directories are created before writing files.
- Fixed naming conventions for Cobra command constructors.
- Consolidated tests for `ParseRepoFromURL`.
- Improved test failure messages.
- Added validation for release tags.
- Aggregated errors during asset downloads.
2025-11-03 20:14:47 +00:00
..
compress feat: Improve test coverage and refactor for testability 2025-11-03 16:31:26 +00:00
datanode feat: Improve test coverage and refactor for testability 2025-11-03 18:25:04 +00:00
github feat: Bug fixes and refactoring 2025-11-03 20:14:47 +00:00
logger feat: Improve test coverage and refactor for testability 2025-11-03 18:25:04 +00:00
matrix feat: Add Terminal Isolation Matrix feature 2025-11-02 12:39:46 +00:00
mocks feat: Improve test coverage and refactor for testability 2025-11-03 16:31:26 +00:00
pwa feat: Improve test coverage and refactor for testability 2025-11-03 18:25:04 +00:00
tarfs feat: Improve test coverage and refactor for testability 2025-11-03 18:25:04 +00:00
ui feat: Improve test coverage and refactor for testability 2025-11-03 18:25:04 +00:00
vcs refactor: Use dependency injection for mocking 2025-11-02 22:14:52 +00:00
website feat: Improve test coverage and refactor for testability 2025-11-03 18:25:04 +00:00