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

Function print_success

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

Print a success message to stdout. The message is formatted in green with a checkmark prefix. # Arguments `message` - The message to print # Example ```rust,ignore print_success("Repository initialized successfully!"); // Output: ✓ Repository initialized successfully! ```

(message: &str)

Source from the content-addressed store, hash-verified

108/// // Output: ✓ Repository initialized successfully!
109/// ```
110pub fn print_success(message: &str) {
111 crate::logging::printed(crate::logging::Printed::Success, message);
112 if live::capture(live::Kind::Success, message) {
113 return;
114 }
115 println!("{} {}", success("✓"), success(message));
116}
117
118/// Print an error message to stderr.
119///

Callers 15

runMethod · 0.85
run_pushMethod · 0.85
run_popMethod · 0.85
apply_stashMethod · 0.85
run_dropMethod · 0.85
run_clearMethod · 0.85
runMethod · 0.85
print_resultsMethod · 0.85
runMethod · 0.85
doctor_checkFunction · 0.85

Calls 2

printedFunction · 0.85
captureFunction · 0.70

Tested by

no test coverage detected