From 7f606f36fef0c0467c3c0db3d0da33af486dae8a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 02:25:52 +0900 Subject: feat(port): add stub implementations of shirabe-external-packages --- .../src/symfony/component/console/application.rs | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 crates/shirabe-external-packages/src/symfony/component/console/application.rs (limited to 'crates/shirabe-external-packages/src/symfony/component/console/application.rs') diff --git a/crates/shirabe-external-packages/src/symfony/component/console/application.rs b/crates/shirabe-external-packages/src/symfony/component/console/application.rs new file mode 100644 index 0000000..760e609 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/component/console/application.rs @@ -0,0 +1,88 @@ +use shirabe_php_shim::PhpMixed; +use crate::symfony::component::console::input::input_interface::InputInterface; +use crate::symfony::component::console::output::output_interface::OutputInterface; + +#[derive(Debug)] +pub struct Application; + +impl Application { + pub fn new(name: &str, version: &str) -> Self { + todo!() + } + + pub fn run( + &mut self, + input: Option<&mut dyn InputInterface>, + output: Option<&mut dyn OutputInterface>, + ) -> anyhow::Result { + todo!() + } + + pub fn set_name(&mut self, name: &str) { + todo!() + } + + pub fn get_name(&self) -> String { + todo!() + } + + pub fn set_version(&mut self, version: &str) { + todo!() + } + + pub fn get_version(&self) -> String { + todo!() + } + + pub fn add(&mut self, command: PhpMixed) -> Option { + todo!() + } + + pub fn get(&self, name: &str) -> anyhow::Result { + todo!() + } + + pub fn set_auto_exit(&mut self, auto_exit: bool) { + todo!() + } + + pub fn set_catch_exceptions(&mut self, catch_exceptions: bool) { + todo!() + } + + pub fn get_helper_set(&self) -> PhpMixed { + todo!() + } + + pub fn set_helper_set(&mut self, helper_set: PhpMixed) { + todo!() + } + + pub fn get_definition(&self) -> PhpMixed { + todo!() + } + + pub fn get_long_version(&self) -> String { + todo!() + } + + pub fn find(&self, name: &str) -> anyhow::Result { + todo!() + } + + pub fn all(&self, namespace: Option<&str>) -> Vec { + todo!() + } + + pub fn get_namespaces(&self) -> Vec { + todo!() + } + + pub fn set_default_command(&mut self, command_name: &str, is_single_command: bool) -> &mut Self { + todo!() + } + + pub fn is_single_command(&self) -> bool { + todo!() + } +} -- cgit v1.3.1