yuler / gh-download

[GitHub CLI] extension for download folders/files
56 stars 0 forks source link

Feature request: resume download after a network error occured #9

Open brainwo opened 1 year ago

brainwo commented 1 year ago

When a download is failed, re-downloading should continue the download where it left out last time. Also it will be good if there's a retry dialog when download is failing:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:19 --:--:--     
curl: (6) Could not resolve host: raw.githubusercontent.com
Download failed. Retry [Y/n]:
yuler commented 1 year ago

I think we do this simply by passing curl's -retry