MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / readSpawnOutput

Function readSpawnOutput

cli/src/utils/theme-system.ts:748–753  ·  view source on GitHub ↗
(output: unknown)

Source from the content-addressed store, hash-verified

746const textDecoder = new TextDecoder()
747
748const readSpawnOutput = (output: unknown): string => {
749 if (!output) return ''
750 if (typeof output === 'string') return output.trim()
751 if (output instanceof Uint8Array) return textDecoder.decode(output).trim()
752 return ''
753}
754
755const runSystemCommand = (command: string[]): string | null => {
756 if (typeof Bun === 'undefined') return null

Callers 1

runSystemCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected