Format a file path in bold. Use this for displaying file paths to make them stand out. # Arguments `text` - The path to format # Returns A styled object that displays in bold when printed. # Example ```rust,ignore println!("Modified: {}", colors::path("src/main.rs")); ```
(text: D)
| 360 | /// println!("Modified: {}", colors::path("src/main.rs")); |
| 361 | /// ``` |
| 362 | pub fn path<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 363 | style(text).bold() |
| 364 | } |
| 365 | |
| 366 | /// Format a hash in dim style. |
| 367 | /// |
no outgoing calls