cuducos / chunk

🧱 Chunk is a download manager for slow and unstable servers
MIT License
56 stars 3 forks source link

Creates usage example with download status #23

Closed cuducos closed 1 year ago

cuducos commented 1 year ago

I was trying to use Chunk's downloader channel and checking if it was easy to build something useful for the final user in terms of a CLI, for example.

https://user-images.githubusercontent.com/4732915/202876558-7bdd6369-1d27-49ab-82dc-eae76524fac7.mov

I am not sure where these files can be, but I think examples like that are good resources for future users. Maybe once this is a package, we can move it to an example/ directory; but now we wouldn't be able to import it, right?

How I tested it manually:

$ go build -o /usr/local/bin/chunk main.go example.go
$ chunk  https://live.staticflickr.com/8479/8226040362_41d856f9fd_o_d.jpg
$ chunk http://200.152.38.155/CNPJ/Cnaes.zip http://200.152.38.155/CNPJ/Motivos.zip http://200.152.38.155/CNPJ/Municipios.zip http://200.152.38.155/CNPJ/Naturezas.zip http://200.152.38.155/CNPJ/Paises.zip http://200.152.38.155/CNPJ/Qualificacoes.zip