From 16d67fa3e7d97a075ab215e7cc7ee6e2cfd70833 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 25 Feb 2026 12:29:47 -0800 Subject: [PATCH] Remove VM from cache and destroy with spinner --- src/commands/vm.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/commands/vm.ts b/src/commands/vm.ts index d300265..f14fef7 100644 --- a/src/commands/vm.ts +++ b/src/commands/vm.ts @@ -74,8 +74,14 @@ export function register(program: Command) { .command("destroy") .description("Stop and delete the VM") .action(async () => { - await vm.destroy() - console.log("✔ VM destroyed") + const spin = spinner("Destroying VM") + try { + await vm.destroy() + spin.succeed("VM destroyed") + } catch (err) { + spin.fail(String((err as Error).message ?? err)) + process.exit(1) + } }) vmCmd