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

Function getBrewFormula

packages/arctic/src/installation/index.ts:114–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 )
113
114 async function getBrewFormula() {
115 const tapFormula = await $`brew list --formula sst/tap/arctic`.throws(false).text()
116 if (tapFormula.includes("arctic")) return "sst/tap/arctic"
117 const coreFormula = await $`brew list --formula arctic`.throws(false).text()
118 if (coreFormula.includes("arctic")) return "arctic"
119 return "arctic"
120 }
121
122 export async function upgrade(method: Method, target: string) {
123 let cmd

Callers 2

upgradeFunction · 0.85
latestFunction · 0.85

Calls 2

textMethod · 0.65
throwsMethod · 0.65

Tested by

no test coverage detected