The arduino-flasher-cli should do the following:
- allow the user to specify, using a flag (for example
--temp-dir), a different directory to download and/or extract the image. $HOME/.cache might not be big enough if the user has multiple hard disks.
- check if there is enough free disk space where the image is going to be downloaded and extracted, before taking any other action. Warn the user and exit if the space is not enough.
Additional context
Related