summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorValerio Di Maggio <[email protected]>2025-12-22 06:44:25 +0100
committerGitHub <[email protected]>2025-12-21 23:44:25 -0600
commit8bdc0c8f799f8865327b4829b897ab02d8248615 (patch)
tree5f2589b1ba709552c595c36868a3af9661d079a4
parent04650f01feaa75e3276792efdcf983a02a778f0f (diff)
downloadopencode-8bdc0c8f799f8865327b4829b897ab02d8248615.tar.gz
opencode-8bdc0c8f799f8865327b4829b897ab02d8248615.zip
fix: ensure installation commands are using .quiet (#5758)
Co-authored-by: Aiden Cline <[email protected]> Co-authored-by: Aiden Cline <[email protected]>
-rw-r--r--packages/opencode/src/installation/index.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.ts
index 0359c16fe..2c99e21a8 100644
--- a/packages/opencode/src/installation/index.ts
+++ b/packages/opencode/src/installation/index.ts
@@ -1,5 +1,4 @@
import { BusEvent } from "@/bus/bus-event"
-import { Bus } from "@/bus"
import path from "path"
import { $ } from "bun"
import z from "zod"
@@ -66,23 +65,23 @@ export namespace Installation {
const checks = [
{
name: "npm" as const,
- command: () => $`npm list -g --depth=0`.throws(false).text(),
+ command: () => $`npm list -g --depth=0`.throws(false).quiet().text(),
},
{
name: "yarn" as const,
- command: () => $`yarn global list`.throws(false).text(),
+ command: () => $`yarn global list`.throws(false).quiet().text(),
},
{
name: "pnpm" as const,
- command: () => $`pnpm list -g --depth=0`.throws(false).text(),
+ command: () => $`pnpm list -g --depth=0`.throws(false).quiet().text(),
},
{
name: "bun" as const,
- command: () => $`bun pm ls -g`.throws(false).text(),
+ command: () => $`bun pm ls -g`.throws(false).quiet().text(),
},
{
name: "brew" as const,
- command: () => $`brew list --formula opencode`.throws(false).text(),
+ command: () => $`brew list --formula opencode`.throws(false).quiet().text(),
},
]
@@ -112,9 +111,9 @@ export namespace Installation {
)
async function getBrewFormula() {
- const tapFormula = await $`brew list --formula sst/tap/opencode`.throws(false).text()
+ const tapFormula = await $`brew list --formula sst/tap/opencode`.throws(false).quiet().text()
if (tapFormula.includes("opencode")) return "sst/tap/opencode"
- const coreFormula = await $`brew list --formula opencode`.throws(false).text()
+ const coreFormula = await $`brew list --formula opencode`.throws(false).quiet().text()
if (coreFormula.includes("opencode")) return "opencode"
return "opencode"
}