aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/command_event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin/command_event.rs')
-rw-r--r--crates/shirabe/src/plugin/command_event.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/shirabe/src/plugin/command_event.rs b/crates/shirabe/src/plugin/command_event.rs
index 0eb952a..aa5b366 100644
--- a/crates/shirabe/src/plugin/command_event.rs
+++ b/crates/shirabe/src/plugin/command_event.rs
@@ -1,8 +1,8 @@
//! ref: composer/src/Composer/Plugin/CommandEvent.php
+use crate::event_dispatcher::event::Event;
use shirabe_external_packages::symfony::console::input::input_interface::InputInterface;
use shirabe_external_packages::symfony::console::output::output_interface::OutputInterface;
-use crate::event_dispatcher::event::Event;
use shirabe_php_shim::PhpMixed;
#[derive(Debug)]
@@ -23,7 +23,12 @@ impl CommandEvent {
flags: Vec<PhpMixed>,
) -> Self {
let inner = Event::new(name, args, flags);
- Self { inner, command_name, input, output }
+ Self {
+ inner,
+ command_name,
+ input,
+ output,
+ }
}
pub fn get_input(&self) -> &dyn InputInterface {