berrymot / gh-file-curler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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());
}

About


Languages

Language:Rust 100.0%