From 7d06a493514c20338278c8ffdf0ba2e0f0eed353 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 02:49:34 +0900 Subject: feat(init): implement repos/repositorySets accessors Add the repos and repositorySets fields backing PackageDiscoveryTrait, mirroring RequireCommand, and return them from get_repos_mut / get_repository_sets_mut. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/init_command.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/command') diff --git a/crates/shirabe/src/command/init_command.rs b/crates/shirabe/src/command/init_command.rs index afb4e9d..f345d76 100644 --- a/crates/shirabe/src/command/init_command.rs +++ b/crates/shirabe/src/command/init_command.rs @@ -49,18 +49,21 @@ pub struct InitCommand { /// @var array git_config: Option>, + repos: Option, + repository_sets: + IndexMap>>, } impl PackageDiscoveryTrait for InitCommand { fn get_repos_mut(&mut self) -> &mut Option { - todo!() + &mut self.repos } fn get_repository_sets_mut( &mut self, ) -> &mut IndexMap>> { - todo!() + &mut self.repository_sets } fn get_io(&self) -> std::rc::Rc> { @@ -104,6 +107,8 @@ impl InitCommand { let mut command = InitCommand { base_command_data: BaseCommandData::new(None), git_config: None, + repos: None, + repository_sets: IndexMap::new(), }; command .configure() -- cgit v1.3.1