MCPcopy
hub / github.com/openai/codex-plugin-cc / outputResult

Function outputResult

plugins/codex/scripts/codex-companion.mjs:91–97  ·  view source on GitHub ↗
(value, asJson)

Source from the content-addressed store, hash-verified

89}
90
91function outputResult(value, asJson) {
92 if (asJson) {
93 console.log(JSON.stringify(value, null, 2));
94 } else {
95 process.stdout.write(value);
96 }
97}
98
99function outputCommandResult(payload, rendered, asJson) {
100 outputResult(asJson ? payload : rendered, asJson);

Callers 4

outputCommandResultFunction · 0.85
handleSetupFunction · 0.85
runForegroundCommandFunction · 0.85
handleStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected