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

Function command

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

Format a command or code snippet in bold cyan. Use this for displaying commands the user should run. # Arguments `text` - The command to format # Returns A styled object that displays in bold cyan when printed. # Example ```rust,ignore println!("Run {} to continue", colors::command("atomic add ")); ```

(text: D)

Source from the content-addressed store, hash-verified

488/// println!("Run {} to continue", colors::command("atomic add <file>"));
489/// ```
490pub fn command<D: std::fmt::Display>(text: D) -> StyledObject<D> {
491 style(text).cyan().bold()
492}
493
494/// Format renamed content in cyan.
495///

Calls

no outgoing calls