Compare commits

...

2 Commits

Author SHA1 Message Date
16d67fa3e7 Remove VM from cache and destroy with spinner 2026-02-25 12:29:47 -08:00
a025d302dc 8 2026-02-25 12:28:33 -08:00
2 changed files with 9 additions and 3 deletions

View File

@ -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": {

View File

@ -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 () => {
await vm.destroy() const spin = spinner("Destroying VM")
console.log("✔ VM destroyed") try {
await vm.destroy()
spin.succeed("VM destroyed")
} catch (err) {
spin.fail(String((err as Error).message ?? err))
process.exit(1)
}
}) })
vmCmd vmCmd