MCPcopy Create free account
hub / github.com/anomalyco/opencode / source

Function source

packages/opencode/src/config/variable.ts:25–27  ·  view source on GitHub ↗
(input: ParseSource)

Source from the content-addressed store, hash-verified

23}
24
25function source(input: ParseSource) {
26 return input.type === "path" ? input.path : input.source
27}
28
29function dir(input: ParseSource) {
30 return input.type === "path" ? path.dirname(input.path) : input.dir

Callers 1

substituteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected