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

Function view

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

Format a view/branch name in cyan and bold. Use this for view names to make them prominent. # Arguments `text` - The view name to format # Returns A styled object that displays in cyan and bold when printed. # Example ```rust,ignore println!("On view: {}", colors::view("main")); ```

(text: D)

Source from the content-addressed store, hash-verified

402/// println!("On view: {}", colors::view("main"));
403/// ```
404pub fn view<D: std::fmt::Display>(text: D) -> StyledObject<D> {
405 style(text).cyan().bold()
406}
407
408/// Format a timestamp in dim style.
409///

Callers 2

test_view_returns_styledFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_view_returns_styledFunction · 0.68