MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / formatCliParamValue

Function formatCliParamValue

src/utils/responses/next-step-formatting.ts:30–35  ·  view source on GitHub ↗
(value: Exclude<NextStepParamValue, boolean>)

Source from the content-addressed store, hash-verified

28}
29
30function formatCliParamValue(value: Exclude<NextStepParamValue, boolean>): string {
31 if (typeof value === 'string' || typeof value === 'number') {
32 return formatCliArg(String(value));
33 }
34 return shellEscapeArg(JSON.stringify(value));
35}
36
37function formatNextStepForCli(step: NextStep): string {
38 const commandName = step.cliTool ?? (step.tool ? toKebabCase(step.tool) : undefined);

Callers 1

formatNextStepForCliFunction · 0.85

Calls 2

shellEscapeArgFunction · 0.90
formatCliArgFunction · 0.85

Tested by

no test coverage detected