canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.75k stars 642 forks source link

Enable wild cards when deleting virtual machines #3647

Open 106106 opened 1 month ago

106106 commented 1 month ago

What are you trying to do? I'm trying to delete multiple VMs quickly but not all VMs.

For example,

multipass delete --purge test*
delete failed: The following errors occurred:
instance "test*" does not exist

Where tabbing gives

multipass delete --purge test
test1   test2  test3  test4

What's your proposed solution? A description of how you think this could be solved, including any alternatives that you considered.

Allowing bash wild cards?

Additional context Add any other context or screenshots about the feature request here.

Maybe I'm missing something simple here, if there's a work around that would be great

georgeliao commented 1 month ago

@106106 Thank you for the proposal; it is certainly an improvement. However, we are currently occupied with other priorities. We will try to allocate time for this when our schedule permits.

giuliazanchi commented 1 month ago

Hi @106106 , I took the liberty of renaming this issue fixing "will cards" > "wild cards" for clarity.

106106 commented 1 month ago

Thanks @georgeliao