#github #git-history #file #repo #fetch #grabs #curler

gh-file-curler

Grabs only the files from a Github repo, without the Git history

14 stable releases

new 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

Download history 505/week @ 2024-02-12 79/week @ 2024-02-19 164/week @ 2024-02-26 18/week @ 2024-03-04 12/week @ 2024-03-11 143/week @ 2024-03-18 420/week @ 2024-04-01

577 downloads per month
Used in notoize

MIT/Apache

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–18MB
~244K SLoC