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

Function writeCliOutput

src/cli/commands/generic.ts:73–82  ·  view source on GitHub ↗
(flags: CliFlags, output: CliOutput)

Source from the content-addressed store, hash-verified

71}
72
73function writeCliOutput(flags: CliFlags, output: CliOutput): void {
74 if (!flags.json && output.stderr) {
75 process.stderr.write(output.stderr);
76 }
77 writeCommandOutput(
78 flags,
79 flags.json ? (output.jsonData ?? output.data) : output.data,
80 () => output.text,
81 );
82}

Callers 1

Calls 2

writeCommandOutputFunction · 0.90
writeMethod · 0.80

Tested by

no test coverage detected