banger/internal/cli
Thales Maciel 4812693c1e
Add concurrent multi-VM CLI actions
Teach the lifecycle and set commands to accept multiple VM refs, resolve them from one vm list snapshot, dedupe repeated refs, and fan out the existing single-target RPCs concurrently. Valid targets still run when other refs are ambiguous or missing, and batch output stays in first-seen order.

Refactor the daemon off the single global VM mutation lock by adding per-VM locks for start/stop/restart/delete/kill/set, touch, reconcile, stale-stop, and stats updates. That keeps same-VM operations serialized while allowing different VMs to progress in parallel, including newly created VMs once their ID exists.

Verified with go test ./... and make build.
2026-03-18 14:04:16 -03:00
..
banger.go Add concurrent multi-VM CLI actions 2026-03-18 14:04:16 -03:00
bangerd.go Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
cli_test.go Add concurrent multi-VM CLI actions 2026-03-18 14:04:16 -03:00
tui.go Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00
tui_test.go Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00