Skip to content

refactor(diskimage): rename ImageSize to ImageSizeBytes and update output formatting #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 29, 2025

Conversation

uzaxirr
Copy link
Contributor

@uzaxirr uzaxirr commented Apr 22, 2025

depends on: civo/civogo#250

@uzaxirr uzaxirr requested a review from Copilot April 22, 2025 17:26
@uzaxirr uzaxirr self-assigned this Apr 22, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors disk image commands by renaming the field "ImageSize" to "ImageSizeBytes" and updating the output formatting for displaying disk image details.

  • Refactored disk image find command to build output data with AppendDataWithLabel calls.
  • Updated disk image create command to use the new field name "ImageSizeBytes".

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cmd/diskimage/disk_image_find.go Updated output builder with AppendDataWithLabel and switched output method
cmd/diskimage/disk_image_create.go Renamed field from ImageSize to ImageSizeBytes
Comments suppressed due to low confidence (1)

cmd/diskimage/disk_image_find.go:56

  • Ensure that tests have been updated to verify the new output format using WriteKeyValues, confirming that all key/value pairs are displayed as expected.
ow.WriteKeyValues()

@uzaxirr uzaxirr merged commit 9cc6840 into master Apr 29, 2025
1 check passed
@uzaxirr uzaxirr deleted the disk-show branch April 29, 2025 03:20
uzaxirr added a commit that referenced this pull request Apr 30, 2025
…tput formatting (#535)

* refactor(diskimage): rename ImageSize to ImageSizeBytes and update output formatting
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.

2 participants