Skip to content

monirz/conget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conget

Conget is a CLI application, which downloads file data concurrently by splitting the data into several chunks and fetch those asynchronously.

Install & Build

Conget uses Cobra for handling command line interaction.
Get the dependency with go mod

Build with Makefile

To compile and build the binary file, run this command. it will build the binary in bin/ directory with the name conget.

$ make build  

Or for Mac

$ make build-mac

To remove the compiled binary file.

$ make clean 

It will remove all the binary file.

For running tests.

$ make test 

###Installing or running it without Go

Binary file of latest build is pushed in the bin/ directory, download the file according to your OS and run the command ./conget

Usage

$ conget -u http://example.com/example.mp4

The default concurrent number is set to 5 if -c flag is not set. To set the concurrent number provide the number with -c flag. Ex:

$ conget -c 12 -u  http://example.com/example.mp4

Note It downloads the file in current directory where you run the command.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make changes and add them (git add .)
  4. Commit your changes (git commit -m 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new pull request

About

A CLI app for downloading file concurrently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published