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

Function isEnabled

packages/opencode/src/format/index.ts:52–55  ·  view source on GitHub ↗
(item: Formatter.Info)

Source from the content-addressed store, hash-verified

50 }
51
52 async function isEnabled(item: Formatter.Info) {
53 const cmd = await getCommand(item)
54 return cmd !== false
55 }
56
57 async function getFormatter(ext: string) {
58 const matching = Object.values(formatters).filter((item) => item.extensions.includes(ext))

Callers 1

index.tsFile · 0.70

Calls 1

getCommandFunction · 0.85

Tested by

no test coverage detected