MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / formatCliArg

Function formatCliArg

src/utils/responses/next-step-formatting.ts:20–24  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

18}
19
20function formatCliArg(value: string): string {
21 return SHELL_SAFE_UNQUOTED_ARG.test(value) && !value.startsWith('-')
22 ? value
23 : shellEscapeArg(value);
24}
25
26function hasComplexCliParamValue(value: NextStepParamValue): boolean {
27 return typeof value === 'object' && value !== null;

Callers 1

formatCliParamValueFunction · 0.85

Calls 1

shellEscapeArgFunction · 0.90

Tested by

no test coverage detected