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

Function warning

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

Format a warning message in yellow. Use this for warnings, cautions, or situations that need attention but aren't errors. # Arguments `text` - The text to format # Returns A styled object that displays in yellow when printed. # Example ```rust,ignore println!("{}", colors::warning("File will be overwritten")); ```

(text: D)

Source from the content-addressed store, hash-verified

188/// println!("{}", colors::warning("File will be overwritten"));
189/// ```
190pub fn warning<D: std::fmt::Display>(text: D) -> StyledObject<D> {
191 style(text).yellow()
192}
193
194/// Format an error message in red.
195///

Callers 6

print_reportFunction · 0.85
walkthrough_textFunction · 0.85
finding_lineFunction · 0.85

Calls

no outgoing calls