From 6a8bbfd4074d50924da4cfbd73502be8944b2685 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 24 Feb 2026 09:53:59 -0800 Subject: [PATCH] Add spinner to vm stop command --- 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 f9c39a0..d300265 100644 --- a/src/commands/vm.ts +++ b/src/commands/vm.ts @@ -60,8 +60,14 @@ export function register(program: Command) { .command("stop") .description("Stop the VM") .action(async () => { - await vm.stop() - console.log("✔ VM stopped") + const spin = spinner("Stopping VM") + try { + await vm.stop() + spin.succeed("VM stopped") + } catch (err) { + spin.fail(String((err as Error).message ?? err)) + process.exit(1) + } }) vmCmd