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

Function author

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

Format an author name in default style. Use this for displaying author names in logs and history. # Arguments `text` - The author name to format # Returns A styled object (currently unstyled for readability). # Example ```rust,ignore println!("Author: {}", colors::author("Jane Doe ")); ```

(text: D)

Source from the content-addressed store, hash-verified

444/// println!("Author: {}", colors::author("Jane Doe <jane@example.com>"));
445/// ```
446pub fn author<D: std::fmt::Display>(text: D) -> StyledObject<D> {
447 style(text)
448}
449
450// Semantic Colors
451

Callers 2

Calls

no outgoing calls

Tested by 2