MCPcopy 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
60function truncate(str: string, maxLength: number): string {
61 if (str.length <= maxLength) return str;
62 return str.slice(0, maxLength - 3) + '...';
63}

Callers 1

formatToolListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected