aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/console/html_output_formatter.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-06 02:59:07 +0900
committernsfisis <nsfisis@gmail.com>2026-06-06 02:59:07 +0900
commit3ab47b80e26bfd9f8af27a5947a2bba072f3742c (patch)
treeb66b71317adf9283dfc3c09365c08e30547e1f3d /crates/shirabe/src/console/html_output_formatter.rs
parentcccd901aef23a0ff7e9f87a4a57e9074c816a06f (diff)
downloadphp-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/src/console/html_output_formatter.rs')
-rw-r--r--crates/shirabe/src/console/html_output_formatter.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/shirabe/src/console/html_output_formatter.rs b/crates/shirabe/src/console/html_output_formatter.rs
index 39294c8..a2158fa 100644
--- a/crates/shirabe/src/console/html_output_formatter.rs
+++ b/crates/shirabe/src/console/html_output_formatter.rs
@@ -42,10 +42,8 @@ impl HtmlOutputFormatter {
];
pub fn new(styles: IndexMap<String, OutputFormatterStyle>) -> Self {
- // TODO(phase-b): styles dropped until base OutputFormatter::new accepts a style map
- let _ = styles;
Self {
- inner: OutputFormatter::new(true),
+ inner: OutputFormatter::new(true, styles),
}
}