Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
function
source(input: ParseSource) {
26
return
input.
type
===
"path"
? input.path : input.source
27
}
28
29
function
dir(input: ParseSource) {
30
return
input.
type
===
"path"
? path.dirname(input.path) : input.dir
Callers
1
substitute
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected