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/console/style/mod.rs | 1 + .../src/symfony/console/style/symfony_style.rs | 96 ++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 crates/shirabe-external-packages/src/symfony/console/style/mod.rs create mode 100644 crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs (limited to 'crates/shirabe-external-packages/src/symfony/console/style') diff --git a/crates/shirabe-external-packages/src/symfony/console/style/mod.rs b/crates/shirabe-external-packages/src/symfony/console/style/mod.rs new file mode 100644 index 0000000..e5c930f --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/console/style/mod.rs @@ -0,0 +1 @@ +pub mod symfony_style; diff --git a/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs new file mode 100644 index 0000000..288a79d --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs @@ -0,0 +1,96 @@ +use shirabe_php_shim::PhpMixed; +use crate::symfony::console::output::output_interface::OutputInterface; +use crate::symfony::console::input::input_interface::InputInterface; + +#[derive(Debug)] +pub struct SymfonyStyle; + +impl SymfonyStyle { + pub fn new(input: &dyn InputInterface, output: &dyn OutputInterface) -> Self { + todo!() + } + + pub fn title(&mut self, message: &str) { + todo!() + } + + pub fn section(&mut self, message: &str) { + todo!() + } + + pub fn text(&mut self, message: &str) { + todo!() + } + + pub fn comment(&mut self, message: &str) { + todo!() + } + + pub fn success(&mut self, message: PhpMixed) { + todo!() + } + + pub fn error(&mut self, message: PhpMixed) { + todo!() + } + + pub fn warning(&mut self, message: PhpMixed) { + todo!() + } + + pub fn note(&mut self, message: PhpMixed) { + todo!() + } + + pub fn listing(&mut self, elements: &[String]) { + todo!() + } + + pub fn new_line(&mut self, count: i64) { + todo!() + } + + pub fn ask(&mut self, question: &str, default: Option<&str>, validator: Option) -> anyhow::Result>>) -> PhpMixed { + todo!() + } + + pub fn ask_hidden(&mut self, question: &str, validator: Option) -> anyhow::Result>>) -> PhpMixed { + todo!() + } + + pub fn confirm(&mut self, question: &str, default: bool) -> bool { + todo!() + } + + pub fn choice(&mut self, question: &str, choices: Vec, default: Option) -> PhpMixed { + todo!() + } + + pub fn table(&mut self, headers: Vec, rows: Vec) { + todo!() + } + + pub fn progress_start(&mut self, max: i64) { + todo!() + } + + pub fn progress_advance(&mut self, step: i64) { + todo!() + } + + pub fn progress_finish(&mut self) { + todo!() + } + + pub fn is_debug(&self) -> bool { + todo!() + } + + pub fn writeln(&mut self, messages: PhpMixed, r#type: i64) { + todo!() + } + + pub fn write(&mut self, messages: PhpMixed, newline: bool, r#type: i64) { + todo!() + } +} -- cgit v1.3.1