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

Function success

atomic-cli/src/output/colors.rs:168–170  ·  view source on GitHub ↗

Format a success message in green. Use this for positive outcomes, confirmations, and success states. # Arguments `text` - The text to format # Returns A styled object that displays in green when printed. # Example ```rust,ignore println!("{}", colors::success("Repository initialized successfully!")); ```

(text: D)

Source from the content-addressed store, hash-verified

166/// println!("{}", colors::success("Repository initialized successfully!"));
167/// ```
168pub fn success<D: std::fmt::Display>(text: D) -> StyledObject<D> {
169 style(text).green()
170}
171
172/// Format a warning message in yellow.
173///

Calls

no outgoing calls