MCPcopy 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
28export const mix: Info = {

Callers 1

index.tsFile · 0.50

Calls 4

whichFunction · 0.90
enabledMethod · 0.80
textMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected