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

Function short

atomic-cli/src/commands/sidecars.rs:147–149  ·  view source on GitHub ↗

First 12 chars of a base32 key, for display.

(key: &str)

Source from the content-addressed store, hash-verified

145
146/// First 12 chars of a base32 key, for display.
147fn short(key: &str) -> &str {
148 &key[..12.min(key.len())]
149}
150
151fn count(n: usize, singular: &str) -> String {
152 if n == 1 {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected