Format a command or code snippet in bold cyan. Use this for displaying commands the user should run. # Arguments `text` - The command to format # Returns A styled object that displays in bold cyan when printed. # Example ```rust,ignore println!("Run {} to continue", colors::command("atomic add ")); ```
(text: D)
| 488 | /// println!("Run {} to continue", colors::command("atomic add <file>")); |
| 489 | /// ``` |
| 490 | pub fn command<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 491 | style(text).cyan().bold() |
| 492 | } |
| 493 | |
| 494 | /// Format renamed content in cyan. |
| 495 | /// |
no outgoing calls