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

Function hash

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

Format a hash in dim style. Use this for change hashes, state hashes, or other identifiers. # Arguments `text` - The hash to format # Returns A styled object that displays in dim when printed. # Example ```rust,ignore println!("Change: {}", colors::hash("ABC123DEF456...")); ```

(text: D)

Source from the content-addressed store, hash-verified

381/// println!("Change: {}", colors::hash("ABC123DEF456..."));
382/// ```
383pub fn hash<D: std::fmt::Display>(text: D) -> StyledObject<D> {
384 style(text).dim()
385}
386
387/// Format a view/branch name in cyan and bold.
388///

Callers 15

test_hash_returns_styledFunction · 0.85
prompt_hash_from_textMethod · 0.85
build_turn_envelopeFunction · 0.85
ofMethod · 0.85
newMethod · 0.85
encode_session_todo_keyFunction · 0.85
encode_session_phase_keyFunction · 0.85
chunk_contentFunction · 0.85

Calls

no outgoing calls