diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
| commit | a1c7e6908a26e10f6e1f23a51721664b5e2d838d (patch) | |
| tree | c575c76f1b43359ed74913da4c6a2636643f1ba0 /crates/shirabe-external-packages/src/symfony/console | |
| parent | 7f606f36fef0c0467c3c0db3d0da33af486dae8a (diff) | |
| download | php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.gz php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.zst php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.zip | |
chore(style): cargo fmt
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console')
8 files changed, 170 insertions, 53 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs index 8be111d..c82cf35 100644 --- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs +++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs @@ -2,7 +2,11 @@ pub struct OutputFormatterStyle; impl OutputFormatterStyle { - pub fn new(foreground: Option<&str>, background: Option<&str>, options: Option<Vec<String>>) -> Self { + pub fn new( + foreground: Option<&str>, + background: Option<&str>, + options: Option<Vec<String>>, + ) -> Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs b/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs index 1eb3883..68c589e 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs @@ -1,6 +1,6 @@ -use shirabe_php_shim::PhpMixed; -use indexmap::IndexMap; use crate::symfony::console::input::input_interface::InputInterface; +use indexmap::IndexMap; +use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct ArrayInput; @@ -12,18 +12,51 @@ impl ArrayInput { } impl InputInterface for ArrayInput { - fn get_first_argument(&self) -> Option<String> { todo!() } - fn has_parameter_option(&self, _values: &[&str], _only_params: bool) -> bool { todo!() } - fn get_parameter_option(&self, _values: &[&str], _default: PhpMixed, _only_params: bool) -> PhpMixed { todo!() } - fn validate(&self) -> anyhow::Result<()> { todo!() } - fn get_arguments(&self) -> IndexMap<String, PhpMixed> { todo!() } - fn get_argument(&self, _name: &str) -> PhpMixed { todo!() } - fn set_argument(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { todo!() } - fn has_argument(&self, _name: &str) -> bool { todo!() } - fn get_options(&self) -> IndexMap<String, PhpMixed> { todo!() } - fn get_option(&self, _name: &str) -> PhpMixed { todo!() } - fn set_option(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { todo!() } - fn has_option(&self, _name: &str) -> bool { todo!() } - fn is_interactive(&self) -> bool { todo!() } - fn set_interactive(&mut self, _interactive: bool) { todo!() } + fn get_first_argument(&self) -> Option<String> { + todo!() + } + fn has_parameter_option(&self, _values: &[&str], _only_params: bool) -> bool { + todo!() + } + fn get_parameter_option( + &self, + _values: &[&str], + _default: PhpMixed, + _only_params: bool, + ) -> PhpMixed { + todo!() + } + fn validate(&self) -> anyhow::Result<()> { + todo!() + } + fn get_arguments(&self) -> IndexMap<String, PhpMixed> { + todo!() + } + fn get_argument(&self, _name: &str) -> PhpMixed { + todo!() + } + fn set_argument(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { + todo!() + } + fn has_argument(&self, _name: &str) -> bool { + todo!() + } + fn get_options(&self) -> IndexMap<String, PhpMixed> { + todo!() + } + fn get_option(&self, _name: &str) -> PhpMixed { + todo!() + } + fn set_option(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { + todo!() + } + fn has_option(&self, _name: &str) -> bool { + todo!() + } + fn is_interactive(&self) -> bool { + todo!() + } + fn set_interactive(&mut self, _interactive: bool) { + todo!() + } } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs b/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs index 1f70581..f5c29e8 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs @@ -8,7 +8,12 @@ impl InputArgument { pub const OPTIONAL: i64 = 2; pub const IS_ARRAY: i64 = 4; - pub fn new(name: &str, mode: Option<i64>, description: &str, default: Option<PhpMixed>) -> Self { + pub fn new( + name: &str, + mode: Option<i64>, + description: &str, + default: Option<PhpMixed>, + ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/input_interface.rs b/crates/shirabe-external-packages/src/symfony/console/input/input_interface.rs index 2e25dea..d1c11c2 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/input_interface.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/input_interface.rs @@ -1,10 +1,15 @@ -use shirabe_php_shim::PhpMixed; use indexmap::IndexMap; +use shirabe_php_shim::PhpMixed; pub trait InputInterface { fn get_first_argument(&self) -> Option<String>; fn has_parameter_option(&self, values: &[&str], only_params: bool) -> bool; - fn get_parameter_option(&self, values: &[&str], default: PhpMixed, only_params: bool) -> PhpMixed; + fn get_parameter_option( + &self, + values: &[&str], + default: PhpMixed, + only_params: bool, + ) -> PhpMixed; fn validate(&self) -> anyhow::Result<()>; fn get_arguments(&self) -> IndexMap<String, PhpMixed>; fn get_argument(&self, name: &str) -> PhpMixed; diff --git a/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs b/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs index d552380..12c6d9d 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs @@ -1,6 +1,6 @@ -use shirabe_php_shim::PhpMixed; -use indexmap::IndexMap; use crate::symfony::console::input::input_interface::InputInterface; +use indexmap::IndexMap; +use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct StringInput; @@ -12,18 +12,51 @@ impl StringInput { } impl InputInterface for StringInput { - fn get_first_argument(&self) -> Option<String> { todo!() } - fn has_parameter_option(&self, _values: &[&str], _only_params: bool) -> bool { todo!() } - fn get_parameter_option(&self, _values: &[&str], _default: PhpMixed, _only_params: bool) -> PhpMixed { todo!() } - fn validate(&self) -> anyhow::Result<()> { todo!() } - fn get_arguments(&self) -> IndexMap<String, PhpMixed> { todo!() } - fn get_argument(&self, _name: &str) -> PhpMixed { todo!() } - fn set_argument(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { todo!() } - fn has_argument(&self, _name: &str) -> bool { todo!() } - fn get_options(&self) -> IndexMap<String, PhpMixed> { todo!() } - fn get_option(&self, _name: &str) -> PhpMixed { todo!() } - fn set_option(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { todo!() } - fn has_option(&self, _name: &str) -> bool { todo!() } - fn is_interactive(&self) -> bool { todo!() } - fn set_interactive(&mut self, _interactive: bool) { todo!() } + fn get_first_argument(&self) -> Option<String> { + todo!() + } + fn has_parameter_option(&self, _values: &[&str], _only_params: bool) -> bool { + todo!() + } + fn get_parameter_option( + &self, + _values: &[&str], + _default: PhpMixed, + _only_params: bool, + ) -> PhpMixed { + todo!() + } + fn validate(&self) -> anyhow::Result<()> { + todo!() + } + fn get_arguments(&self) -> IndexMap<String, PhpMixed> { + todo!() + } + fn get_argument(&self, _name: &str) -> PhpMixed { + todo!() + } + fn set_argument(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { + todo!() + } + fn has_argument(&self, _name: &str) -> bool { + todo!() + } + fn get_options(&self) -> IndexMap<String, PhpMixed> { + todo!() + } + fn get_option(&self, _name: &str) -> PhpMixed { + todo!() + } + fn set_option(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { + todo!() + } + fn has_option(&self, _name: &str) -> bool { + todo!() + } + fn is_interactive(&self) -> bool { + todo!() + } + fn set_interactive(&mut self, _interactive: bool) { + todo!() + } } diff --git a/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs b/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs index 8728fa6..e5d83fb 100644 --- a/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs +++ b/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs @@ -1,5 +1,5 @@ -use shirabe_php_shim::PhpMixed; use crate::symfony::console::output::output_interface::OutputInterface; +use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct StreamOutput; @@ -11,14 +11,34 @@ impl StreamOutput { } impl OutputInterface for StreamOutput { - fn write(&mut self, _messages: &str, _newline: bool, _type: i64) { todo!() } - fn writeln(&mut self, _messages: &str, _type: i64) { todo!() } - fn set_verbosity(&mut self, _level: i64) { todo!() } - fn get_verbosity(&self) -> i64 { todo!() } - fn is_quiet(&self) -> bool { todo!() } - fn is_verbose(&self) -> bool { todo!() } - fn is_very_verbose(&self) -> bool { todo!() } - fn is_debug(&self) -> bool { todo!() } - fn set_decorated(&mut self, _decorated: bool) { todo!() } - fn is_decorated(&self) -> bool { todo!() } + fn write(&mut self, _messages: &str, _newline: bool, _type: i64) { + todo!() + } + fn writeln(&mut self, _messages: &str, _type: i64) { + todo!() + } + fn set_verbosity(&mut self, _level: i64) { + todo!() + } + fn get_verbosity(&self) -> i64 { + todo!() + } + fn is_quiet(&self) -> bool { + todo!() + } + fn is_verbose(&self) -> bool { + todo!() + } + fn is_very_verbose(&self) -> bool { + todo!() + } + fn is_debug(&self) -> bool { + todo!() + } + fn set_decorated(&mut self, _decorated: bool) { + todo!() + } + fn is_decorated(&self) -> bool { + todo!() + } } diff --git a/crates/shirabe-external-packages/src/symfony/console/question/question.rs b/crates/shirabe-external-packages/src/symfony/console/question/question.rs index 2fc7368..34bb6a4 100644 --- a/crates/shirabe-external-packages/src/symfony/console/question/question.rs +++ b/crates/shirabe-external-packages/src/symfony/console/question/question.rs @@ -8,7 +8,10 @@ impl Question { todo!() } - pub fn set_validator(&mut self, validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>) { + pub fn set_validator( + &mut self, + validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, + ) { todo!() } 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 index 288a79d..7f7acd6 100644 --- a/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs +++ b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs @@ -1,6 +1,6 @@ -use shirabe_php_shim::PhpMixed; -use crate::symfony::console::output::output_interface::OutputInterface; use crate::symfony::console::input::input_interface::InputInterface; +use crate::symfony::console::output::output_interface::OutputInterface; +use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct SymfonyStyle; @@ -50,11 +50,20 @@ impl SymfonyStyle { todo!() } - pub fn ask(&mut self, question: &str, default: Option<&str>, validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>) -> PhpMixed { + 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 { + pub fn ask_hidden( + &mut self, + question: &str, + validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, + ) -> PhpMixed { todo!() } @@ -62,7 +71,12 @@ impl SymfonyStyle { todo!() } - pub fn choice(&mut self, question: &str, choices: Vec<PhpMixed>, default: Option<PhpMixed>) -> PhpMixed { + pub fn choice( + &mut self, + question: &str, + choices: Vec<PhpMixed>, + default: Option<PhpMixed>, + ) -> PhpMixed { todo!() } |
