Compare commits

...

3 Commits

Author SHA1 Message Date
7b014d0203 Update upgrade command to use shout package 2026-03-12 14:25:35 -07:00
f128053183 Add upgrade command to CLI 2026-03-12 14:24:55 -07:00
b9f3d7f6e8 0.0.7 2026-03-12 14:23:58 -07:00
2 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@because/shout",
"version": "0.0.6",
"version": "0.0.7",
"description": "shell output tester",
"module": "src/index.ts",
"type": "module",

View File

@ -264,4 +264,16 @@ $ true
[0]`)
})
program
.command("upgrade")
.description("Upgrade to the latest version")
.action(async () => {
const result = await Bun.spawn(["bun", "install", "-g", "@because/shout@latest"], {
stdin: "inherit",
stdout: "inherit",
stderr: "inherit",
}).exited
process.exit(result)
})
program.parse()