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

Function resolveRunInput

packages/opencode/src/cli/cmd/run.ts:40–50  ·  view source on GitHub ↗
(value?: string, piped?: string)

Source from the content-addressed store, hash-verified

38}
39
40function resolveRunInput(value?: string, piped?: string): string | undefined {
41 if (!value) {
42 return piped
43 }
44
45 if (!piped) {
46 return value
47 }
48
49 return value + "\n" + piped
50}
51
52type FilePart = {
53 type: "file"

Callers 1

run.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected