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

Function untracked

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

Format untracked content in red (same as deleted for visibility). Use this for files that are not yet tracked by the repository. # Arguments `text` - The text to format # Returns A styled object that displays in red when printed. # Example ```rust,ignore println!("{} {}", colors::untracked("?"), colors::untracked("new_file.txt")); ```

(text: D)

Source from the content-addressed store, hash-verified

337/// println!("{} {}", colors::untracked("?"), colors::untracked("new_file.txt"));
338/// ```
339pub fn untracked<D: std::fmt::Display>(text: D) -> StyledObject<D> {
340 style(text).red()
341}
342
343// Reference Colors
344

Callers 2

Calls

no outgoing calls

Tested by 2