Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwodder/download-assets-rust
Download GitHub release assets in parallel
https://github.com/jwodder/download-assets-rust
async download github rust
Last synced: 20 days ago
JSON representation
Download GitHub release assets in parallel
- Host: GitHub
- URL: https://github.com/jwodder/download-assets-rust
- Owner: jwodder
- License: mit
- Created: 2022-07-20T15:38:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T12:39:13.000Z (about 1 year ago)
- Last Synced: 2023-10-31T13:35:27.940Z (about 1 year ago)
- Topics: async, download, github, rust
- Language: Rust
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a Rust program for downloading all the assets for one or more releases
of a given GitHub repository in parallel. It was written as an exercise in
beginning asynchronous Rust and is a translation (with some behavior changes)
of [this Python script][pygist].[pygist]: https://gist.github.com/jwodder/c0ad1a5a0b6fda18c15dbdb405e1e549
Usage
=====download-assets [] [ ...]
Download all the assets for each of the given releases (identified by tag name)
of the given GitHub repository.The repository can be specified as either `OWNER/NAME` or
`https://github.com/OWNER/NAME`.At least one release or the `--all` option must be specified.
Options
-------- `-A`, `--all` — Download assets for all releases of the repository
- `-d PATH`, `--download-dir PATH` — Specify the directory in which to save the
assets. The directory need not already exist. The assets for each release
will be placed in a subdirectory named after the release's tag. [default:
current directory]