MCPcopy
hub / github.com/anomalyco/opencode / show

Function show

packages/opencode/src/index.ts:35–43  ·  view source on GitHub ↗
(out: string)

Source from the content-addressed store, hash-verified

33const args = hideBin(process.argv)
34
35function show(out: string) {
36 const text = out.trimStart()
37 if (!text.startsWith("opencode ")) {
38 process.stderr.write(UI.logo() + EOL + EOL)
39 process.stderr.write(text + EOL)
40 return
41 }
42 process.stderr.write(out)
43}
44
45const cli = yargs(args)
46 .parserConfiguration({ "populate--": true })

Callers 2

index.tsFile · 0.70
index.tsFile · 0.50

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected