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

Function deleted

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

Format deleted content in red. Use this for removed files, lines, or content. # Arguments `text` - The text to format # Returns A styled object that displays in red when printed. # Example ```rust,ignore println!("{} {}", colors::deleted("-"), colors::deleted("removed line")); ```

(text: D)

Source from the content-addressed store, hash-verified

295/// println!("{} {}", colors::deleted("-"), colors::deleted("removed line"));
296/// ```
297pub fn deleted<D: std::fmt::Display>(text: D) -> StyledObject<D> {
298 style(text).red()
299}
300
301/// Format modified content in yellow.
302///

Callers 15

write_commitMethod · 0.85
runMethod · 0.85
print_unifiedMethod · 0.85
print_name_statusMethod · 0.85
test_file_diff_deletedFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_file_diff_deletedFunction · 0.68
test_inode_update_hashFunction · 0.68
test_file_change_deletedFunction · 0.68
test_result_iteratorsFunction · 0.68
test_result_mergeFunction · 0.68