aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/home_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-06 02:27:03 +0900
committernsfisis <nsfisis@gmail.com>2026-06-06 02:27:03 +0900
commitad78317ecf8ffadae3088452b6b52e2d476fadeb (patch)
tree1fbd913e06673af67b9c7177324feba9b2a2ca71 /crates/shirabe/src/command/home_command.rs
parent148350ca9281286d09608cb3ad48facbb3db9a1a (diff)
downloadphp-shirabe-ad78317ecf8ffadae3088452b6b52e2d476fadeb.tar.gz
php-shirabe-ad78317ecf8ffadae3088452b6b52e2d476fadeb.tar.zst
php-shirabe-ad78317ecf8ffadae3088452b6b52e2d476fadeb.zip
feat(command): merge local and remote repos in browse command
initialize_repos now appends the local repository and remote repositories from the repository manager after the root package repo, matching PHP HomeCommand::initializeRepos. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/home_command.rs')
-rw-r--r--crates/shirabe/src/command/home_command.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/shirabe/src/command/home_command.rs b/crates/shirabe/src/command/home_command.rs
index 69f2cca..db6f644 100644
--- a/crates/shirabe/src/command/home_command.rs
+++ b/crates/shirabe/src/command/home_command.rs
@@ -211,7 +211,12 @@ impl HomeCommand {
composer.get_package(),
)),
));
- // TODO(phase-b): get_local_repository / get_repositories return shared refs; needs Rc<dyn ...> migration
+ let repository_manager = composer.get_repository_manager();
+ let repository_manager = repository_manager.borrow();
+ repos.push(repository_manager.get_local_repository());
+ for repo in repository_manager.get_repositories() {
+ repos.push(repo.clone());
+ }
return Ok(repos);
}