Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ short_key
Function
short_key
atomic-cli/src/commands/intent/verify.rs:270–276 ·
view source on GitHub ↗
Truncate a base32 key for display.
(key: &str)
Source
from the content-addressed store, hash-verified
268
269
/// Truncate a base32 key for display.
270
fn short_key(key: &str) -> String {
271
if key.len() > 16 {
272
format!(
"{}..."
, &key[..16])
273
} else {
274
key.to_string()
275
}
276
}
Callers
nothing calls this directly
Calls
1
len
Method · 0.45
Tested by
no test coverage detected