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

Function print_warning

atomic-cli/src/output/mod.rs:153–159  ·  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

151/// // Output: ⚠ File will be overwritten
152/// ```
153pub fn print_warning(message: &str) {
154 crate::logging::printed(crate::logging::Printed::Warning, message);
155 if live::capture(live::Kind::Warning, message) {
156 return;
157 }
158 eprintln!("{} {}", warning("⚠"), warning(message));
159}
160
161/// Print an informational message to stdout.
162///

Callers 15

run_pushMethod · 0.85
apply_stashMethod · 0.85
runMethod · 0.85
print_failed_deletionsFunction · 0.85
runMethod · 0.85
print_resultsMethod · 0.85
runMethod · 0.85
runMethod · 0.85
print_diagnosisFunction · 0.85
statusFunction · 0.85
addFunction · 0.85
recordFunction · 0.85

Calls 2

printedFunction · 0.85
captureFunction · 0.70

Tested by 2

render_summaryMethod · 0.68
list_allMethod · 0.68