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

Function print_success

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

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

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