From 6051927c8fa32cfffa102d2a170c5a6cf747a1b9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 11:19:03 +0900 Subject: refactor(symfony-console): extract symfony/console into the shirabe-symfony-console crate Move `Symfony\Component\Console` out of shirabe-external-packages and into its own crate, so the path is `shirabe_symfony_console::application::Application` instead of `shirabe_external_packages::symfony::console::application::Application`. The `delegate_to_inner!` and `delegate_command_trait_impls_to_inner!` macros move with it. Co-Authored-By: Claude Opus 5 (1M context) --- .../src/symfony/console/style/style_interface.rs | 74 ---------------------- 1 file changed, 74 deletions(-) delete mode 100644 crates/shirabe-external-packages/src/symfony/console/style/style_interface.rs (limited to 'crates/shirabe-external-packages/src/symfony/console/style/style_interface.rs') diff --git a/crates/shirabe-external-packages/src/symfony/console/style/style_interface.rs b/crates/shirabe-external-packages/src/symfony/console/style/style_interface.rs deleted file mode 100644 index 96745de1..00000000 --- a/crates/shirabe-external-packages/src/symfony/console/style/style_interface.rs +++ /dev/null @@ -1,74 +0,0 @@ -//! ref: composer/vendor/symfony/console/Style/StyleInterface.php - -use shirabe_php_shim::PhpMixed; - -/// Output style helpers. -pub trait StyleInterface { - /// Formats a command title. - fn title(&mut self, message: &str); - - /// Formats a section title. - fn section(&mut self, message: &str); - - /// Formats a list. - fn listing(&mut self, elements: Vec); - - /// Formats informational text. - fn text(&mut self, message: PhpMixed); - - /// Formats a success result bar. - fn success(&mut self, message: PhpMixed); - - /// Formats an error result bar. - fn error(&mut self, message: PhpMixed); - - /// Formats an warning result bar. - fn warning(&mut self, message: PhpMixed); - - /// Formats a note admonition. - fn note(&mut self, message: PhpMixed); - - /// Formats a caution admonition. - fn caution(&mut self, message: PhpMixed); - - /// Formats a table. - fn table(&mut self, headers: Vec, rows: Vec); - - /// Asks a question. - fn ask( - &mut self, - question: &str, - default: Option<&str>, - validator: Option) -> anyhow::Result>>, - ) -> PhpMixed; - - /// Asks a question with the user input hidden. - fn ask_hidden( - &mut self, - question: &str, - validator: Option) -> anyhow::Result>>, - ) -> PhpMixed; - - /// Asks for confirmation. - fn confirm(&mut self, question: &str, default: bool) -> bool; - - /// Asks a choice question. - fn choice( - &mut self, - question: &str, - choices: Vec, - default: Option, - ) -> PhpMixed; - - /// Add newline(s). - fn new_line(&mut self, count: i64); - - /// Starts the progress output. - fn progress_start(&mut self, max: i64); - - /// Advances the progress output X steps. - fn progress_advance(&mut self, step: i64); - - /// Finishes the progress output. - fn progress_finish(&mut self); -} -- cgit v1.3.1-4-g156e