14 stable releases
2.4.0 | Apr 2, 2024 |
---|---|
2.3.0 | Mar 20, 2024 |
2.2.0 | Feb 26, 2024 |
1.5.0 | Feb 16, 2024 |
#1 in #grabs
32 downloads per month
Used in notoize
11KB
143 lines
gh-file-curler
Grabs only the files from a Github repo, without the Git history
Usage
use gh_file_curler::fetch;
use std::fs;
fn main() {
fs::remove_dir_all("out").unwrap_or(());
fs::create_dir("out").unwrap();
let the = fetch_dir("berrymot", "gh-file-curler", &[""], true, "TOKEN")
.unwrap();
the.clone().write_to("out");
println!("{} files", the.0.len());
}
Dependencies
~4–16MB
~213K SLoC