volume inspect
- Add Mountpoint and Scope ("local").
- Report Labels and Options as null rather than {} when absent, and omit Status
when the driver reports nothing.
- Rename DriverOpts to Options on the read path; DriverOpts remains the
create-request name.
volume prune
- Print deleted volumes under a "Deleted Volumes:" header as bare names.
- Emit the blank line before the total only when something was deleted.
- Report reclaimed space with four significant digits (12.29kB).
Also renames FormatDockerSize to FormatHumanReadableSize with a Precision
parameter defaulting to 3, leaving image sizes unchanged. Tests updated, plus
a new e2e test covering the full inspect field set.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
wslc: match docker output format for image list
- Emit docker-shaped fields (Containers, CreatedAt/CreatedSince, Digest, ID,
Repository/Tag, Size, SharedSize/UniqueSize) via shared ImageOutputInformation
so table and json output can't drift; "<none>" for missing repo/tag, "N/A" for
values wslc doesn't track.
- Add FormatDockerSize (base-1000, 3 significant digits) and FormatDockerTimestamp
(Go time.Time layout) to common string helpers; localize relative time strings.
- Add container counts to WSLCImageInformation, computed in the service and only
requested when json output will show them; cap image ID with WSLC_MAX_IMAGE_ID_LENGTH.
- Tests: string, relative time, and image list e2e coverage.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>