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

Function hint

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

Format a hint/suggestion message in dim style. Use this for supplementary information, suggestions, or less important details. # Arguments `text` - The text to format # Returns A styled object that displays in dim when printed. # Example ```rust,ignore println!("{}", colors::hint("Tip: Use --help for more options")); ```

(text: D)

Source from the content-addressed store, hash-verified

251/// println!("{}", colors::hint("Tip: Use --help for more options"));
252/// ```
253pub fn hint<D: std::fmt::Display>(text: D) -> StyledObject<D> {
254 style(text).dim()
255}
256
257// File Status Colors
258

Callers 4

format_local_stateFunction · 0.85
format_remote_stateFunction · 0.85
test_hint_returns_styledFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_hint_returns_styledFunction · 0.68