Commit 021e53a
committed
chore: refactor CLI downloading logic
I moved and modified the logic from CliManager.download to a separate
http client based on okhttp and retrofit. The refactor will allow us
to easily add new steps in the main download method, and also to easily
download new resources. Long term we could also re-use the okhttp client
to avoid setting twice the same boilerplate (proxy which is missing from CLIManager,
hostname verification and other tls settings) between cli downloader and the rest client1 parent 4227ebd commit 021e53a
File tree
4 files changed
+249
-144
lines changed- src/main/kotlin/com/coder/toolbox/cli
- downloader
4 files changed
+249
-144
lines changed
0 commit comments