diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 02:59:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 02:59:07 +0900 |
| commit | 3ab47b80e26bfd9f8af27a5947a2bba072f3742c (patch) | |
| tree | b66b71317adf9283dfc3c09365c08e30547e1f3d /crates/shirabe-external-packages/src/symfony/console/formatter | |
| parent | cccd901aef23a0ff7e9f87a4a57e9074c816a06f (diff) | |
| download | php-shirabe-3ab47b80e26bfd9f8af27a5947a2bba072f3742c.tar.gz php-shirabe-3ab47b80e26bfd9f8af27a5947a2bba072f3742c.tar.zst php-shirabe-3ab47b80e26bfd9f8af27a5947a2bba072f3742c.zip | |
feat(console): pass styles through HtmlOutputFormatter constructor
Resolve TODO(phase-b): mirror PHP's parent::__construct(true, $styles)
by extending the base OutputFormatter::new to accept a style map.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/formatter')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs index 8b921d6..77ebde5 100644 --- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs +++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs @@ -1,8 +1,13 @@ +use indexmap::IndexMap; + #[derive(Debug)] pub struct OutputFormatter; impl OutputFormatter { - pub fn new(_decorated: bool) -> Self { + pub fn new( + _decorated: bool, + _styles: IndexMap<String, crate::symfony::console::formatter::OutputFormatterStyle>, + ) -> Self { todo!() } |
