feat(lifecycle): route media actions and VM logs

Add ActionDriver/LogDriver dispatch for insert, eject, NVMe upgrades and serial/QEMU logs across lifecycle, App and CLI.

Pass driver IDs through frontend media and log calls and extend second-driver action/log coverage.
This commit is contained in:
Nwflower committed 2026-11-30 09:40:52 -07:00
1 parent b6fde8fd4b
commit e83cce28e6
14 files changed
+162 -11

No files matched your search

+6 -4
View File
@@ -587,13 +587,15 @@ func cmdVM(cfg *config.Config, loc i18n.Locale, args []string, viaWindow bool) e
}
return deleteVM(ctx, cfg, *driverID, fs.Arg(0), *keepFiles)
case "eject":
if err := initReims(); err != nil {
fs := flag.NewFlagSet("vm eject", flag.ContinueOnError)
driverID := fs.String("driver", "", "Owning driver ID when VM names are ambiguous")
if err := fs.Parse(args[1:]); err != nil {
return err
}
if len(args) < 2 {
return fmt.Errorf("usage: reims-go vm eject <name>")
if fs.NArg() < 1 {
return fmt.Errorf("usage: reims-go vm eject [--driver <id>] <name>")
}
return client.Eject(ctx, args[1], os.Stdout, os.Stderr)
return actionVM(ctx, cfg, *driverID, fs.Arg(0), "eject", nil)
case "type":
if err := initReims(); err != nil {
return err