Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ enabled
Function
enabled
packages/opencode/src/format/formatter.ts:21–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
name:
"gofmt"
,
20
extensions: [
".go"
],
21
async
enabled() {
22
const
match = which(
"gofmt"
)
23
if
(!match)
return
false
24
return
[match,
"-w"
,
"$FILE"
]
25
},
26
}
27
28
export
const
mix: Info = {
Callers
1
index.ts
File · 0.50
Calls
4
which
Function · 0.90
enabled
Method · 0.80
text
Method · 0.65
run
Method · 0.45
Tested by
no test coverage detected