Skip to content

Display byte units in text list/get output#1265

Open
nanookclaw wants to merge 1 commit into
openai:mainfrom
nanookclaw:fix/list-human-byte-units
Open

Display byte units in text list/get output#1265
nanookclaw wants to merge 1 commit into
openai:mainfrom
nanookclaw:fix/list-human-byte-units

Conversation

@nanookclaw

Copy link
Copy Markdown

Updates the text render paths for tart list and tart get so their Disk and Size values are shown with ByteCountFormatter human-readable units, while preserving the existing field and column names.

The JSON paths keep their previous machine-readable behavior for compatibility: tart list --format json still emits integer GB values for Disk and Size, and tart get --format json still emits integer GB for Disk plus the existing three-decimal GB string for Size.

Focused tests cover both compatibility shapes and the human-readable text projections.

Fixes #820

Testing

  • git diff --check
  • Not run: swift test --filter 'GetTests|ListTests' (swift is not installed in this environment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion: display disk and size attributes with appropriate byte size units

2 participants