7 Commits
Author SHA1 Message Date
ggarzia-MSFTandCopilot 46be5bb59b Align container list format with Docker specifications (#41375)
wslc: match column order, status text, and json shape for container list


Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-31 22:33:48 +00:00
beena352 25d3add326 Fix unity build ODR collisions on duplicate file-local constants (#41446) 2026-08-26 14:56:19 -07:00
ggarzia-MSFTandCopilot 39551c56f5 wslc: consolidate size formatting on FormatHumanReadableSize (#41429)
Consolidate size formatting into FormatHumanReadableSize

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-25 11:20:25 -07:00
Blue aeacef12f9 Fix incorrect string -> wstring conversion, causing utf16 corruption (#41406) 2026-08-21 10:54:44 -07:00
ggarzia-MSFTandCopilot 58c89ade02 Align wslc volume inspect and prune output with docker (#41404)
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>
2026-08-21 09:31:02 -07:00
ggarzia-MSFTandCopilot 3849bb245f wslc: match docker output format for image list (#41369)
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>
2026-08-18 14:08:57 -07:00
David Bennett 1ef0817a04 CLI: Fix shm-size and all text-to-byte size conversion and align them all to Docker (#41360) 2026-08-17 14:16:37 -07:00