MCPcopy Index your code
hub / github.com/atomicdotdev/atomic / path

Function path

atomic-cli/src/output/colors.rs:362–364  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

360/// println!("Modified: {}", colors::path("src/main.rs"));
361/// ```
362pub fn path<D: std::fmt::Display>(text: D) -> StyledObject<D> {
363 style(text).bold()
364}
365
366/// Format a hash in dim style.
367///

Calls

no outgoing calls