MCPcopy Index your code
hub / github.com/callstack/agent-device / formatCliOutput

Function formatCliOutput

src/commands/cli-output.ts:10–19  ·  view source on GitHub ↗
(params: {
  name: CommandName;
  input: unknown;
  result: unknown;
})

Source from the content-addressed store, hash-verified

8>;
9
10export function formatCliOutput(params: {
11 name: CommandName;
12 input: unknown;
13 result: unknown;
14}): CliOutput | undefined {
15 return cliOutputFormatters[params.name]?.({
16 input: (params.input ?? {}) as Record<string, unknown>,
17 result: params.result,
18 });
19}

Callers 2

runCliCommandWithOutputFunction · 0.90
renderToolTextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected