aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/formatter
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-11 02:39:35 +0900
committernsfisis <nsfisis@gmail.com>2026-06-11 02:39:35 +0900
commit6ae7e0d4b3eaf20e2d2cd3d000cf61ab0c9b6e83 (patch)
treee39261f4aa7314fe8c75142670c76591cdaccb92 /crates/shirabe-external-packages/src/symfony/console/formatter
parent5d3232a80be4b989e89cc7ae4e3642cc5acae030 (diff)
downloadphp-shirabe-6ae7e0d4b3eaf20e2d2cd3d000cf61ab0c9b6e83.tar.gz
php-shirabe-6ae7e0d4b3eaf20e2d2cd3d000cf61ab0c9b6e83.tar.zst
php-shirabe-6ae7e0d4b3eaf20e2d2cd3d000cf61ab0c9b6e83.zip
feat(console): resolve phase-b TODOs in doRun and IO wiring
Wire up ConsoleIO with HelperSet/QuestionHelper, register the ErrorHandler with the IO instance, and fall back to a default output in run(). Replace resolved phase-b TODOs across the console, command, io, factory, installer, dependency_resolver, and util modules; reclassify the remaining blockers (typed Symfony command registry, stdin resource caching) as phase-c. Co-Authored-By: Claude Opus 4.8 (1M context) <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.rs41
-rw-r--r--crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs5
2 files changed, 46 insertions, 0 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 4b499b8..f64361e 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
@@ -39,4 +39,45 @@ impl OutputFormatter {
) {
todo!()
}
+
+ pub fn has_style(&self, _name: &str) -> bool {
+ todo!()
+ }
+
+ pub fn get_style(
+ &self,
+ _name: &str,
+ ) -> crate::symfony::console::formatter::OutputFormatterStyle {
+ todo!()
+ }
+}
+
+impl crate::symfony::console::formatter::OutputFormatterInterface for OutputFormatter {
+ fn is_decorated(&self) -> bool {
+ self.is_decorated()
+ }
+
+ fn set_decorated(&mut self, decorated: bool) {
+ self.set_decorated(decorated)
+ }
+
+ fn set_style(
+ &mut self,
+ name: &str,
+ style: crate::symfony::console::formatter::OutputFormatterStyle,
+ ) {
+ self.set_style(name, style)
+ }
+
+ fn has_style(&self, name: &str) -> bool {
+ self.has_style(name)
+ }
+
+ fn get_style(&self, name: &str) -> crate::symfony::console::formatter::OutputFormatterStyle {
+ self.get_style(name)
+ }
+
+ fn format(&self, message: &str) -> String {
+ self.format(message)
+ }
}
diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs
index dc93a3b..7f6e9b0 100644
--- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs
+++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs
@@ -1,5 +1,10 @@
+use crate::symfony::console::formatter::OutputFormatterStyle;
+
pub trait OutputFormatterInterface {
fn is_decorated(&self) -> bool;
fn set_decorated(&mut self, decorated: bool);
+ fn set_style(&mut self, name: &str, style: OutputFormatterStyle);
+ fn has_style(&self, name: &str) -> bool;
+ fn get_style(&self, name: &str) -> OutputFormatterStyle;
fn format(&self, message: &str) -> String;
}