diff options
Diffstat (limited to 'crates/shirabe/src/plugin/command_event.rs')
| -rw-r--r-- | crates/shirabe/src/plugin/command_event.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crates/shirabe/src/plugin/command_event.rs b/crates/shirabe/src/plugin/command_event.rs index fc19fcb..ca63461 100644 --- a/crates/shirabe/src/plugin/command_event.rs +++ b/crates/shirabe/src/plugin/command_event.rs @@ -1,6 +1,7 @@ //! ref: composer/src/Composer/Plugin/CommandEvent.php use crate::event_dispatcher::Event; +use crate::event_dispatcher::EventInterface; use indexmap::IndexMap; use shirabe_external_packages::symfony::console::input::InputInterface; use shirabe_external_packages::symfony::console::output::OutputInterface; @@ -57,3 +58,25 @@ impl CommandEvent { &self.command_name } } + +impl EventInterface for CommandEvent { + fn get_name(&self) -> &str { + self.inner.get_name() + } + + fn get_arguments(&self) -> &Vec<String> { + self.inner.get_arguments() + } + + fn get_flags(&self) -> &IndexMap<String, PhpMixed> { + self.inner.get_flags() + } + + fn is_propagation_stopped(&self) -> bool { + self.inner.is_propagation_stopped() + } + + fn stop_propagation(&mut self) { + self.inner.stop_propagation(); + } +} |
