MCPcopy Index your code
hub / github.com/anomalyco/opencode / block

Function block

packages/opencode/src/cli/cmd/run.ts:78–84  ·  view source on GitHub ↗
(info: Inline, output?: string)

Source from the content-addressed store, hash-verified

76}
77
78function block(info: Inline, output?: string) {
79 UI.empty()
80 inline(info)
81 if (!output?.trim()) return
82 UI.println(output)
83 UI.empty()
84}
85
86function formatRunError(error: unknown) {
87 return FormatError(error) ?? FormatUnknownError(error)

Callers 2

toolFunction · 0.70
RunFooterViewFunction · 0.50

Calls 1

inlineFunction · 0.70

Tested by

no test coverage detected