Skip to content
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

feat: adding select version function #172

Merged

Conversation

axel7083
Copy link
Contributor

Following #171. Given the podman desktop core api, we need to have a function handling the user selection for the version to install.

To be able to provide the CliToolInstaller#selectversion1 function, we need to have the quick pick logic. As recommended in #171 (comment) making the logic part of the minikubeDownload as it need the object to collect the releases.

Footnotes

  1. https://podman-desktop.io/api/interfaces/CliToolInstaller#selectversion

@axel7083 axel7083 requested a review from benoitf as a code owner October 18, 2024 10:50
src/download.ts Outdated Show resolved Hide resolved
src/download.ts Outdated Show resolved Hide resolved
src/download.ts Outdated
Comment on lines 77 to 79
if (cliInfo) {
lastReleasesMetadata = lastReleasesMetadata.filter(release => release.tag.slice(1) !== cliInfo.version);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

does it work with cliInfo?.version (no usage of the if)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Humm, yes but we avoid having to O(n) with the if

Co-authored-by: Florent BENOIT <[email protected]>
Signed-off-by: axel7083 <[email protected]>
@axel7083 axel7083 requested a review from benoitf October 18, 2024 11:20
Signed-off-by: axel7083 <[email protected]>
@axel7083 axel7083 merged commit 381cff4 into podman-desktop:main Oct 18, 2024
5 checks passed
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