diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-19 00:10:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-19 00:11:03 +0900 |
| commit | c839244d8d09f3036ebfee8eef7eb6b147e593ab (patch) | |
| tree | fe48c94f2c2e62468beef5ff1a8f3cff6adeef4f /crates/shirabe/src/plugin/pre_command_run_event.rs | |
| parent | 48839250146b217e2756ed3c0e624fd341b54d6c (diff) | |
| download | php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.gz php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.zst php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.zip | |
fix(compile): fix various compile errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/plugin/pre_command_run_event.rs')
| -rw-r--r-- | crates/shirabe/src/plugin/pre_command_run_event.rs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/crates/shirabe/src/plugin/pre_command_run_event.rs b/crates/shirabe/src/plugin/pre_command_run_event.rs index 40672c0..7a8b2f1 100644 --- a/crates/shirabe/src/plugin/pre_command_run_event.rs +++ b/crates/shirabe/src/plugin/pre_command_run_event.rs @@ -4,24 +4,21 @@ use crate::event_dispatcher::event::Event; use shirabe_external_packages::symfony::console::input::input_interface::InputInterface; +#[derive(Debug)] pub struct PreCommandRunEvent { inner: Event, - input: Box<dyn InputInterface>, command: String, } impl PreCommandRunEvent { - pub fn new(name: String, input: Box<dyn InputInterface>, command: String) -> Self { - let inner = Event::new(name); - Self { - inner, - input, - command, - } + // TODO(phase-b): input dropped because storing a &dyn reference would need lifetime params. + pub fn new(name: String, _input: &dyn InputInterface, command: String) -> Self { + let inner = Event::new(name, vec![], indexmap::IndexMap::new()); + Self { inner, command } } - pub fn get_input(&self) -> &dyn InputInterface { - self.input.as_ref() + pub fn get_name(&self) -> &str { + self.inner.get_name() } pub fn get_command(&self) -> &str { |
