download_git 0.0.2

Download one or multiple directories from a Git repository.
Documentation

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.

Usage

cargo add download_git

Example

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

License

MIT