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

Function modified

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

Format modified content in yellow. Use this for changed files or content that has been modified. # Arguments `text` - The text to format # Returns A styled object that displays in yellow when printed. # Example ```rust,ignore println!("{} {}", colors::modified("M"), colors::modified("src/main.rs")); ```

(text: D)

Source from the content-addressed store, hash-verified

316/// println!("{} {}", colors::modified("M"), colors::modified("src/main.rs"));
317/// ```
318pub fn modified<D: std::fmt::Display>(text: D) -> StyledObject<D> {
319 style(text).yellow()
320}
321
322/// Format untracked content in red (same as deleted for visibility).
323///

Callers 15

write_commitMethod · 0.85
runMethod · 0.85
print_name_statusMethod · 0.85
test_file_diff_modifiedFunction · 0.85
test_file_diff_add_hunkFunction · 0.85
test_file_diff_cloneFunction · 0.85
test_file_diff_debugFunction · 0.85

Calls

no outgoing calls