Compare commits
2 Commits
81dcac4097
...
3d0d40ab1a
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d0d40ab1a | |||
| ea1c648c52 |
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@because/sandlot",
|
"name": "@because/sandlot",
|
||||||
"version": "0.0.19",
|
"version": "0.0.20",
|
||||||
"description": "Sandboxed, branch-based development with Claude",
|
"description": "Sandboxed, branch-based development with Claude",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
||||||
12
src/cli.ts
12
src/cli.ts
|
|
@ -183,6 +183,18 @@ program
|
||||||
|
|
||||||
registerVmCommands(program)
|
registerVmCommands(program)
|
||||||
|
|
||||||
|
program
|
||||||
|
.command("upgrade")
|
||||||
|
.description("Upgrade sandlot to the latest version")
|
||||||
|
.action(async () => {
|
||||||
|
const result = await Bun.spawn(["bun", "install", "-g", "@because/sandlot@latest"], {
|
||||||
|
stdin: "inherit",
|
||||||
|
stdout: "inherit",
|
||||||
|
stderr: "inherit",
|
||||||
|
}).exited
|
||||||
|
process.exit(result)
|
||||||
|
})
|
||||||
|
|
||||||
program
|
program
|
||||||
.command("version")
|
.command("version")
|
||||||
.description("Print the version number")
|
.description("Print the version number")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user