Automattic / hostmgr

A tool for managing macOS VM hosts
Mozilla Public License 2.0
8 stars 3 forks source link

Fix local images format in the 'vm list' command #77

Closed crazytonyli closed 6 months ago

crazytonyli commented 6 months ago

Here is an example of the local image output:

$ hostmgr vm list
Location  Filename           State     Architecture  Size
Local     macos-13.5.2       16.26 GB
Local     macos-13.5.2       13.42 GB
Remote    macos-13.5.2       Packaged                13.42 GB
Remote    xcode-15.0.1       Packaged                46.34 GB
Remote    xcode-15.1.beta.1  Packaged                46.95 GB
Remote    xcode-15.1.beta.2  Packaged                47.05 GB

With this PR, the output looks like this:

swift run --skip-build hostmgr vm list
Location  Filename           State     Architecture  Size
Local     macos-13.5.2       Ready                   16.26 GB
Local     macos-13.5.2       Packaged                13.42 GB
Remote    macos-13.5.2       Packaged                13.42 GB
Remote    xcode-15.0.1       Packaged                46.34 GB
Remote    xcode-15.1.beta.1  Packaged                46.95 GB
Remote    xcode-15.1.beta.2  Packaged                47.05 GB
crazytonyli commented 6 months ago

I think print the architecture might be an unimplemented feature. The "remote images" also don't print its architecture.

jkmassel commented 6 months ago

We're abandoning Intel support in this project, so we can probably just drop the Architecture column entirely now :)