diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:25:52 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:25:52 +0900 |
| commit | 7f606f36fef0c0467c3c0db3d0da33af486dae8a (patch) | |
| tree | c3f0a3340e1dbfc5245964a775b73030d5abf44e /crates/shirabe-external-packages/src/symfony/console/style | |
| parent | 9389ddbf06f6d38445c277640cab7b2270057790 (diff) | |
| download | php-shirabe-7f606f36fef0c0467c3c0db3d0da33af486dae8a.tar.gz php-shirabe-7f606f36fef0c0467c3c0db3d0da33af486dae8a.tar.zst php-shirabe-7f606f36fef0c0467c3c0db3d0da33af486dae8a.zip | |
feat(port): add stub implementations of shirabe-external-packages
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/style')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/style/mod.rs | 1 | ||||
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs | 96 |
2 files changed, 97 insertions, 0 deletions
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<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>) -> PhpMixed { + todo!() + } + + pub fn ask_hidden(&mut self, question: &str, validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>) -> PhpMixed { + todo!() + } + + pub fn confirm(&mut self, question: &str, default: bool) -> bool { + todo!() + } + + pub fn choice(&mut self, question: &str, choices: Vec<PhpMixed>, default: Option<PhpMixed>) -> PhpMixed { + todo!() + } + + pub fn table(&mut self, headers: Vec<PhpMixed>, rows: Vec<PhpMixed>) { + 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!() + } +} |
