A convenient CLI tool to quickly spin up DragonflyBSD virtual machines using QEMU with sensible defaults.

refactor: remove database error handling from rm and start commands

-15
-10
src/subcommands/rm.ts
··· 19 console.error(`Virtual machine with name or ID ${name} not found.`); 20 Deno.exit(1); 21 }), 22 - DatabaseQueryError: (error) => 23 - Effect.sync(() => { 24 - console.error(`Database error: ${error.message}`); 25 - Deno.exit(1); 26 - }), 27 - DatabaseDeleteError: (error) => 28 - Effect.sync(() => { 29 - console.error(`Failed to delete from database: ${error.message}`); 30 - Deno.exit(1); 31 - }), 32 }), 33 Effect.catchAll((error) => 34 Effect.sync(() => {
··· 19 console.error(`Virtual machine with name or ID ${name} not found.`); 20 Deno.exit(1); 21 }), 22 }), 23 Effect.catchAll((error) => 24 Effect.sync(() => {
-5
src/subcommands/start.ts
··· 181 console.error(`Virtual machine with name or ID ${name} not found.`); 182 Deno.exit(1); 183 }), 184 - DatabaseQueryError: (error) => 185 - Effect.sync(() => { 186 - console.error(`Database error: ${error.message}`); 187 - Deno.exit(1); 188 - }), 189 }), 190 Effect.catchAll((error) => 191 Effect.sync(() => {
··· 181 console.error(`Virtual machine with name or ID ${name} not found.`); 182 Deno.exit(1); 183 }), 184 }), 185 Effect.catchAll((error) => 186 Effect.sync(() => {