Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/getsentry/XcodeBuildMCP
/ truncate
Function
truncate
src/cli/output.ts:60–63 ·
view source on GitHub ↗
(str: string, maxLength: number)
Source
from the content-addressed store, hash-verified
58
}
59
60
function
truncate(str: string, maxLength: number): string {
61
if
(str.length <= maxLength)
return
str;
62
return
str.slice(0, maxLength - 3) +
'...'
;
63
}
Callers
1
formatToolList
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected