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

Function dir

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

Source from the content-addressed store, hash-verified

27}
28
29function dir(input: ParseSource) {
30 return input.type === "path" ? path.dirname(input.path) : input.dir
31}
32
33/** Apply {env:VAR} and {file:path} substitutions to config text. */
34export async function substitute(input: SubstituteInput) {

Callers 1

substituteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected