Update readme and changelog

This commit is contained in:
FliegendeWurst 2022-07-11 10:22:47 +02:00
parent 1eb354865e
commit a48060a9a5
3 changed files with 27 additions and 14 deletions

View File

@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.3.5]
### Added
- `--pass-path` option to get the password from [pass](https://www.passwordstore.org/) (PR [#33] by [@Ma27])
## [0.3.4] ## [0.3.4]
### Added ### Added
- Display a warning if two or more courses/folders have the same name ([#31]) - Display a warning if two or more courses/folders have the same name ([#31])
@ -158,6 +162,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.1.0] - 2020-04-21 ## [0.1.0] - 2020-04-21
(undocumented) (undocumented)
[#33]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/pull/33
[#31]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/issues/31 [#31]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/issues/31
[#30]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/issues/30 [#30]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/issues/30
[#28]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/pull/28 [#28]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/pull/28
@ -180,7 +185,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
[@Craeckie]: https://github.com/Craeckie [@Craeckie]: https://github.com/Craeckie
[@funnym0nk3y]: https://github.com/funnym0nk3y [@funnym0nk3y]: https://github.com/funnym0nk3y
[@Ma27]: https://github.com/Ma27 [@Ma27]: https://github.com/Ma27
[Unreleased]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.4...HEAD [Unreleased]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.5...HEAD
[0.3.5]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.5...v0.3.4
[0.3.4]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.3...v0.3.4 [0.3.4]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.3...v0.3.4
[0.3.3]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.2...v0.3.3 [0.3.3]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.1...v0.3.2 [0.3.2]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.1...v0.3.2

View File

@ -35,8 +35,7 @@ $ KIT-ILIAS-downloader -o ./ILIAS/WS2021-HM1 --sync-url 'https://ilias.studium.k
### Options ### Options
``` ```
$ KIT-ILIAS-downloader --help KIT-ILIAS-downloader 0.3.5
KIT-ILIAS-downloader 0.3.3
USAGE: USAGE:
KIT-ILIAS-downloader [FLAGS] [OPTIONS] --output <output> KIT-ILIAS-downloader [FLAGS] [OPTIONS] --output <output>
@ -60,6 +59,7 @@ FLAGS:
OPTIONS: OPTIONS:
-j, --jobs <jobs> Parallel download jobs [default: 1] -j, --jobs <jobs> Parallel download jobs [default: 1]
-o, --output <output> Output directory -o, --output <output> Output directory
--pass-path <pass-path> Path inside `pass(1)` to the password for your KIT account
-P, --password <password> KIT account password -P, --password <password> KIT account password
-p, --proxy <proxy> Proxy, e.g. socks5h://127.0.0.1:1080 -p, --proxy <proxy> Proxy, e.g. socks5h://127.0.0.1:1080
--rate <rate> Requests per minute [default: 8] --rate <rate> Requests per minute [default: 8]
@ -69,7 +69,7 @@ OPTIONS:
### .iliasignore ### .iliasignore
.gitignore syntax can be used in a `.iliasignore` file: (located in the output folder) .gitignore syntax can be used in a `.iliasignore` file: (located in the output directory)
```ignore ```ignore
# example 1: only download a single course # example 1: only download a single course
/*/ /*/
@ -81,18 +81,25 @@ OPTIONS:
### Credentials ### Credentials
You can use the `--user` and `--keyring` options to get/store the password using the system password store. You can use the `--user` and `--keyring` options to get/store the password using the system password store:
If you use Linux, you'll have to compile from source to be able to use this option.
``` ```
$ KIT-ILIAS-downloader -U uabcd --keyring [...] $ KIT-ILIAS-downloader -U uabcd --keyring [...]
``` ```
If you use [pass](https://www.passwordstore.org/), you can use the `--pass-path` option to specify which password store entry to use:
```
$ KIT-ILIAS-downloader -U uabcd --pass-path edu/kit/uskyk [...]
```
You can also save your username and password in a `.iliaslogin` file: (located in the output folder) You can also save your username and password in a `.iliaslogin` file: (located in the output folder)
``` ```
username username
password password
``` ```
When running the downloader multiple times in a short period of time, you may want to use the `--keep-session` flag.
If specified, the downloader will save and restore session cookies (`.iliassession` file in the output directory).
### Renaming course names (0.2.24+) ### Renaming course names (0.2.24+)
If you'd like to avoid unwieldy course names (e.g. "24030 Programmierparadigmen"), you can create a `course_names.toml` file in the output directory. It should contain the desired mapping of course names to folder names, e.g.: If you'd like to avoid unwieldy course names (e.g. "24030 Programmierparadigmen"), you can create a `course_names.toml` file in the output directory. It should contain the desired mapping of course names to folder names, e.g.:
``` ```

View File

@ -74,7 +74,7 @@ pub struct Opt {
#[structopt(short = "P", long)] #[structopt(short = "P", long)]
pub password: Option<String>, pub password: Option<String>,
/// Path inside `pass(1)` to the password for shibboleth. /// Path inside `pass(1)` to the password for your KIT account
#[structopt(long)] #[structopt(long)]
pub pass_path: Option<String>, pub pass_path: Option<String>,