Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drl990114/download_git
lets you download one or multiple directories from a Git repository.
https://github.com/drl990114/download_git
Last synced: 11 days ago
JSON representation
lets you download one or multiple directories from a Git repository.
- Host: GitHub
- URL: https://github.com/drl990114/download_git
- Owner: drl990114
- License: mit
- Created: 2023-09-07T11:59:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T02:34:22.000Z (about 1 year ago)
- Last Synced: 2024-10-11T00:14:42.756Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
Modify according to [git-down](https://github.com/zikani03/git-down), Supplemented test cases, and more convenient to be called.
lets you download one or multiple directories from a Git repository.
## Usage
```shell
cargo add download_git
```## Example
```rs
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