diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-16 09:42:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-16 09:44:48 +0900 |
| commit | 3fb08fab7ca69a028a9a89544b246ca70534cbce (patch) | |
| tree | e97f7c02e25c54ecc9ed2aa5bf4965e51becb396 /crates/shirabe-symfony-console/src/style/style_interface.rs | |
| parent | 05c38483041fb416ae1293a6579bb7c49b4e6954 (diff) | |
| download | php-shirabe-3fb08fab7ca69a028a9a89544b246ca70534cbce.tar.gz php-shirabe-3fb08fab7ca69a028a9a89544b246ca70534cbce.tar.zst php-shirabe-3fb08fab7ca69a028a9a89544b246ca70534cbce.zip | |
refactor(style): drop the unused SymfonyStyle methods
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-symfony-console/src/style/style_interface.rs')
| -rw-r--r-- | crates/shirabe-symfony-console/src/style/style_interface.rs | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/crates/shirabe-symfony-console/src/style/style_interface.rs b/crates/shirabe-symfony-console/src/style/style_interface.rs index 14c7ba86..8ac8b49f 100644 --- a/crates/shirabe-symfony-console/src/style/style_interface.rs +++ b/crates/shirabe-symfony-console/src/style/style_interface.rs @@ -2,75 +2,18 @@ use crate::helper::Cell; use crate::helper::Row; -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: &[String]); - - /// Formats informational text. - fn text(&mut self, message: &[String]); - - /// Formats a success result bar. - fn success(&mut self, message: &[String]); - /// Formats an error result bar. fn error(&mut self, message: &[String]); - /// Formats an warning result bar. - fn warning(&mut self, message: &[String]); - - /// Formats a note admonition. - fn note(&mut self, message: &[String]); - - /// Formats a caution admonition. - fn caution(&mut self, message: &[String]); - /// Formats a table. fn table(&mut self, headers: Vec<Cell>, rows: Vec<Row>); - /// Asks a question. - fn ask( - &mut self, - question: &str, - default: Option<&str>, - validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, - ) -> PhpMixed; - - /// Asks a question with the user input hidden. - fn ask_hidden( - &mut self, - question: &str, - validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, - ) -> 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<String>, - default: Option<PhpMixed>, - ) -> 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); } |
