cli QoL: vm prune, list→ls aliases, delete→rm aliases

- `banger vm prune` sweeps every non-running VM (stopped, created,
  error) with an interactive confirmation; -f/--force skips the prompt.
  Partial failures report which VM failed and exit non-zero.
- list commands gain `ls` alias: vm list already had it; added to image
  list, kernel list, and vm session list.
- delete commands gain `rm` alias: vm delete and image delete. kernel
  rm already aliased delete/remove.

Uses new test seams (vmListFunc) plus the existing vmDeleteFunc so
prune unit-tests without touching the daemon socket.
This commit is contained in:
Thales Maciel 2026-04-19 12:17:46 -03:00
parent e3eaa0c797
commit 221fb03d68
No known key found for this signature in database
GPG key ID: 33112E6833C34679
4 changed files with 430 additions and 8 deletions

View file

@ -17,6 +17,13 @@ banger vm stop testbox
banger vm delete testbox
```
Sweep every non-running VM (stopped, created, error) with:
```bash
banger vm prune # interactive confirmation
banger vm prune -f # skip the prompt
```
`vm create` is synchronous by default, but on a TTY it shows live
progress until the VM is fully ready.