Format a success message in green. Use this for positive outcomes, confirmations, and success states. # Arguments `text` - The text to format # Returns A styled object that displays in green when printed. # Example ```rust,ignore println!("{}", colors::success("Repository initialized successfully!")); ```
(text: D)
| 166 | /// println!("{}", colors::success("Repository initialized successfully!")); |
| 167 | /// ``` |
| 168 | pub fn success<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 169 | style(text).green() |
| 170 | } |
| 171 | |
| 172 | /// Format a warning message in yellow. |
| 173 | /// |
no outgoing calls