MCPcopy Create free account
hub / github.com/arctic-cli/interface / isEnabled

Function isEnabled

packages/arctic/src/format/index.ts:66–74  ·  view source on GitHub ↗
(item: Formatter.Info)

Source from the content-addressed store, hash-verified

64 })
65
66 async function isEnabled(item: Formatter.Info) {
67 const s = await state()
68 let status = s.enabled[item.name]
69 if (status === undefined) {
70 status = await item.enabled()
71 s.enabled[item.name] = status
72 }
73 return status
74 }
75
76 async function getFormatter(ext: string) {
77 const formatters = await state().then((x) => x.formatters)

Callers 2

getFormatterFunction · 0.70
statusFunction · 0.70

Calls 2

stateFunction · 0.85
enabledMethod · 0.80

Tested by

no test coverage detected