containers / podman-desktop-extension-minikube

Apache License 2.0
3 stars 8 forks source link

feat: adding install method on minikube download #173

Closed axel7083 closed 2 weeks ago

axel7083 commented 2 weeks ago

Following https://github.com/containers/podman-desktop-extension-minikube/pull/172

When we CliTool#registerInstall and CliTool#registerUpdate we need a method to download and install the binary, instead of repeating the code between those two object, we can create a unique method install taking the artifact as argument. Why ? Because we have a bit of logic:

  1. download
  2. try to install system wide
  3. if system success return system path otherwise return download path

And having this method avoid repeating the same lines.

ℹ️ Trust the process... almost at the end :)