[cli] Add --only-cached flag to list locally cached images#4705
Open
larrasket wants to merge 2 commits intocanonical:mainfrom
Open
[cli] Add --only-cached flag to list locally cached images#4705larrasket wants to merge 2 commits intocanonical:mainfrom
larrasket wants to merge 2 commits intocanonical:mainfrom
Conversation
Adds a new --only-cached flag to the find command that lists images stored in the local vault cache. This allows users to see which images are available for immediate launch without a network download. Fixes: canonical#140
Collaborator
|
Hi @larrasket, thank you for your interest and contribution to the Multipass project! It's been quite some time since the original issue motivating this change request was made and the team will have to reevaluate what we want to do about it. I will leave the PR open for now, but we may ask you to make some changes. |
Author
|
@sharder996,
Thanks. I'm open for suggestions
—
Regards
Salih
… On 26 Feb 2026, at 21:18, ScottH ***@***.***> wrote:
sharder996
left a comment
(canonical/multipass#4705)
<#4705 (comment)>
Hi @larrasket <https://github.com/larrasket>, thank you for your interest and contribution to the Multipass project!
It's been quite some time before the original issue motivating this change request was made and the team will have reevaluate what we want to do about it. I will leave the PR open for now, but we may ask you to make some changes.
—
Reply to this email directly, view it on GitHub <#4705 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ARVKOP3TDRLZO5LARPUXXTD4N5BHRAVCNFSM6AAAAACWAAIENGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSNRYGY4DGNRSGM>.
You are receiving this because you were mentioned.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a new --only-cached flag to the find command that lists images stored in the local vault cache. This allows users to see which images are available for immediate launch without a network download.
Related Issue(s)
Closes #140
Testing
I added the following tests:
DaemonFind.onlyCachedReturnsCachedImages(verifies cached images appear in output with alias/release/OS)DaemonFind.onlyCachedEmptyReturnsNoImages(verifies against empty state)Manual testing steps:
Checklist
Additional Notes
I chose --only-cached to make it unambiguous that it filters results to cached images only (instead of --cached), and I believe that matches --show-unsupported naming style.