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

Function print_warning

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

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

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

Calls 2

printedFunction · 0.85
captureFunction · 0.70

Tested by 2

render_summaryMethod · 0.68
list_allMethod · 0.68