You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utils: Add DiskSize type for parsing human-readable sizes
Add a DiskSize newtype that wraps u64 bytes and implements FromStr,
allowing clap to parse disk sizes directly from command line arguments.
This eliminates the need for manual parsing at each call site.
The type supports human-readable formats like '10G', '5120M', '1T' and
provides both from_bytes() constructor and as_bytes() accessor.
Update all disk_size Option<String> fields to use Option<DiskSize>:
- to_disk::ToDiskAdditionalOpts
- libvirt/upload::LibvirtUploadOpts
- libvirt_upload_disk::LibvirtUploadDiskOpts
- libvirt/base_disks (internal usage)
Assisted-by: OpenCode (Claude sonnet-4-20250514)
Signed-off-by: Colin Walters <walters@verbum.org>
0 commit comments