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

Function print_warning

atomic-cli/src/output/mod.rs:121–123  ·  view source on GitHub ↗

Print a warning message to stderr. The message is formatted in yellow with a warning prefix. # Arguments `message` - The message to print # Example ```rust,ignore print_warning("File will be overwritten"); // Output: ⚠ File will be overwritten ```

(message: &str)

Source from the content-addressed store, hash-verified

119/// // Output: ⚠ File will be overwritten
120/// ```
121pub fn print_warning(message: &str) {
122 eprintln!("{} {}", warning("⚠"), warning(message));
123}
124
125/// Print an informational message to stdout.
126///

Callers 15

run_pushMethod · 0.85
apply_stashMethod · 0.85
runMethod · 0.85
print_resultsMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
print_insert_outcomeFunction · 0.85
print_cross_view_outcomeFunction · 0.85
runMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by 2

show_summaryMethod · 0.68
list_allMethod · 0.68