Modify according to git-down, Supplemented test cases, and more convenient to be called.
lets you download one or multiple directories from a Git repository.
cargo add download_git
use download_git;
download_git::download("https://github.com/twbs/bootstrap.git:main", download_git::DownloadOptions {
target_files: Some(vec!["dist".to_string(), "README.md".to_string()]),
dest_path: String::from(TEST_FOLDER)
}).unwrap();
MIT