MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / emphasis

Function emphasis

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

Format emphasized text in bold. Use this to emphasize important text. # Arguments `text` - The text to emphasize # Returns A styled object that displays in bold when printed. # Example ```rust,ignore println!("{} files changed", colors::emphasis(5)); ```

(text: D)

Source from the content-addressed store, hash-verified

467/// println!("{} files changed", colors::emphasis(5));
468/// ```
469pub fn emphasis<D: std::fmt::Display>(text: D) -> StyledObject<D> {
470 style(text).bold()
471}
472
473/// Format a command or code snippet in bold cyan.
474///

Calls

no outgoing calls