Compare commits
2 Commits
8543179ec6
...
16d67fa3e7
| Author | SHA1 | Date | |
|---|---|---|---|
| 16d67fa3e7 | |||
| a025d302dc |
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@because/sandlot",
|
"name": "@because/sandlot",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"description": "Sandboxed, branch-based development with Claude",
|
"description": "Sandboxed, branch-based development with Claude",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,14 @@ export function register(program: Command) {
|
||||||
.command("destroy")
|
.command("destroy")
|
||||||
.description("Stop and delete the VM")
|
.description("Stop and delete the VM")
|
||||||
.action(async () => {
|
.action(async () => {
|
||||||
|
const spin = spinner("Destroying VM")
|
||||||
|
try {
|
||||||
await vm.destroy()
|
await vm.destroy()
|
||||||
console.log("✔ VM destroyed")
|
spin.succeed("VM destroyed")
|
||||||
|
} catch (err) {
|
||||||
|
spin.fail(String((err as Error).message ?? err))
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
vmCmd
|
vmCmd
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user