This commit introduces a significant refactoring of the `cmd` package to improve testability and increases test coverage across the application. 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. |
||
|---|---|---|
| .. | ||
| all.go | ||
| collect.go | ||
| collect_github.go | ||
| collect_github_release_subcommand.go | ||
| collect_github_repo.go | ||
| collect_github_repos.go | ||
| collect_pwa.go | ||
| collect_pwa_test.go | ||
| collect_website.go | ||
| collect_website_test.go | ||
| root.go | ||
| root_test.go | ||
| serve.go | ||