alok8bb / cloneit

A cli tool to download specific GitHub directories or files
MIT License
74 stars 2 forks source link

refactor: reorganize, use `eyre` for error handling #17

Open uncenter opened 2 months ago

uncenter commented 2 months ago

Just trying some ideas...

uncenter commented 2 months ago

Currently working on a way to pass the ZipArchiver writer to the download function so that the bytes from the files can be written directly into the zip, solving #16 and #15. Having some trouble with lifetimes, borrowing, strict typing though... will be a bit. Also I'm aware this PR is a monstrosity so I'll try to split it up into smaller chunks/steps after I figure out where I'm going with it :)