Borg/cmd
google-labs-jules[bot] bb6d30122d refactor: Use dependency injection for mocking
This commit refactors the codebase to use dependency injection for mocking external dependencies, removing the need for in-code mocking with the `BORG_PLEXSUS` environment variable.

- Interfaces have been created for external dependencies in the `pkg/vcs`, `pkg/github`, and `pkg/pwa` packages.
- The `cmd` package has been refactored to use these interfaces, with dependencies exposed as public variables for easy mocking in tests.
- The tests in `TDD/collect_commands_test.go` have been updated to inject mock implementations of these interfaces.
- The `BORG_PLEXSUS` environment variable has been removed from the codebase.
2025-11-02 22:14:52 +00:00
..
all.go refactor: Use dependency injection for mocking 2025-11-02 22:14:52 +00:00
collect.go feat: Add TDD framework and fix build error 2025-11-02 18:11:04 +00:00
collect_github.go feat: Add TDD framework and fix build error 2025-11-02 18:11:04 +00:00
collect_github_release_subcommand.go feat: Add TDD framework and fix build error 2025-11-02 18:11:04 +00:00
collect_github_repo.go refactor: Use dependency injection for mocking 2025-11-02 22:14:52 +00:00
collect_github_repos.go refactor: Use dependency injection for mocking 2025-11-02 22:14:52 +00:00
collect_pwa.go refactor: Use dependency injection for mocking 2025-11-02 22:14:52 +00:00
collect_website.go feat: Add TDD framework and fix build error 2025-11-02 18:11:04 +00:00
main_test.go feat: Add authenticated GitHub access and structured logging 2025-11-02 00:59:46 +00:00
root.go feat: Add TDD framework and fix build error 2025-11-02 18:11:04 +00:00
serve.go feat: Add TDD framework and fix build error 2025-11-02 18:11:04 +00:00