diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 02:36:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 02:40:41 +0900 |
| commit | cf0e5510dc645038b91c6fcb77ff373cb2a57d49 (patch) | |
| tree | bc60429d4ef19a54a9af41194df5751b17631737 /crates/shirabe/src/command | |
| parent | efec43b3b8827820cf35fe1b73d8e33f5fe84eb4 (diff) | |
| download | php-shirabe-cf0e5510dc645038b91c6fcb77ff373cb2a57d49.tar.gz php-shirabe-cf0e5510dc645038b91c6fcb77ff373cb2a57d49.tar.zst php-shirabe-cf0e5510dc645038b91c6fcb77ff373cb2a57d49.zip | |
feat: resolve trivial todo!() placeholders
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command')
| -rw-r--r-- | crates/shirabe/src/command/require_command.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/require_command.rs b/crates/shirabe/src/command/require_command.rs index 31d345a..3d8331b 100644 --- a/crates/shirabe/src/command/require_command.rs +++ b/crates/shirabe/src/command/require_command.rs @@ -65,6 +65,8 @@ pub struct RequireCommand { /// contents before modification if the lock file exists lock_backup: Option<String>, dependency_resolution_completed: bool, + repos: Option<crate::repository::RepositoryInterfaceHandle>, + repository_sets: IndexMap<String, std::rc::Rc<std::cell::RefCell<RepositorySet>>>, } impl Default for RequireCommand { @@ -85,6 +87,8 @@ impl RequireCommand { lock: String::new(), lock_backup: None, dependency_resolution_completed: false, + repos: None, + repository_sets: IndexMap::new(), }; command .configure() @@ -95,13 +99,13 @@ impl RequireCommand { impl PackageDiscoveryTrait for RequireCommand { fn get_repos_mut(&mut self) -> &mut Option<crate::repository::RepositoryInterfaceHandle> { - todo!() + &mut self.repos } fn get_repository_sets_mut( &mut self, ) -> &mut IndexMap<String, std::rc::Rc<std::cell::RefCell<RepositorySet>>> { - todo!() + &mut self.repository_sets } fn get_io(&self) -> std::rc::Rc<std::cell::RefCell<dyn IOInterface>> { |
