Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Library API? #5

Open
alatiera opened this issue Dec 24, 2017 · 1 comment
Open

Library API? #5

alatiera opened this issue Dec 24, 2017 · 1 comment

Comments

@alatiera
Copy link

Hey, I am developing an application and 've been looking for a downloader library.
I like zou and would like to contribute and start using it as a library.

I took a look at the code and there doesn't seem to be a straight forward API yet.
Instead the cli binary sort of acts as it. Would be nice to decouple it and have main.rs consume a library API instead.

Generally I am thinking about something like the following:

fn download(uri: &str(I guess), final_path: path) Result<()> { 
    Weird magic that handles everything about downloading 
}
@k0pernicus
Copy link
Owner

Hello @alatiera,
Thank you for your proposal!
It's a great idea - are you working on this? :-)
Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants