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/output | |
| 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/output')
3 files changed, 48 insertions, 0 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/output/mod.rs b/crates/shirabe-external-packages/src/symfony/console/output/mod.rs new file mode 100644 index 0000000..80e9326 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/console/output/mod.rs @@ -0,0 +1,2 @@ +pub mod output_interface; +pub mod stream_output; diff --git a/crates/shirabe-external-packages/src/symfony/console/output/output_interface.rs b/crates/shirabe-external-packages/src/symfony/console/output/output_interface.rs new file mode 100644 index 0000000..4031cc6 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/console/output/output_interface.rs @@ -0,0 +1,22 @@ +pub trait OutputInterface { + fn write(&mut self, messages: &str, newline: bool, r#type: i64); + fn writeln(&mut self, messages: &str, r#type: i64); + fn set_verbosity(&mut self, level: i64); + fn get_verbosity(&self) -> i64; + fn is_quiet(&self) -> bool; + fn is_verbose(&self) -> bool; + fn is_very_verbose(&self) -> bool; + fn is_debug(&self) -> bool; + fn set_decorated(&mut self, decorated: bool); + fn is_decorated(&self) -> bool; +} + +pub const VERBOSITY_QUIET: i64 = 16; +pub const VERBOSITY_NORMAL: i64 = 32; +pub const VERBOSITY_VERBOSE: i64 = 64; +pub const VERBOSITY_VERY_VERBOSE: i64 = 128; +pub const VERBOSITY_DEBUG: i64 = 256; + +pub const OUTPUT_NORMAL: i64 = 1; +pub const OUTPUT_RAW: i64 = 2; +pub const OUTPUT_PLAIN: i64 = 4; 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 new file mode 100644 index 0000000..8728fa6 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs @@ -0,0 +1,24 @@ +use shirabe_php_shim::PhpMixed; +use crate::symfony::console::output::output_interface::OutputInterface; + +#[derive(Debug)] +pub struct StreamOutput; + +impl StreamOutput { + pub fn new(stream: PhpMixed, verbosity: i64, decorated: Option<bool>) -> Self { + todo!() + } +} + +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!() } +} |
