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