Commit Graph

259 Commits

Author SHA1 Message Date
Arne Keller
9b66eadd36
Merge pull request #57 from Ma27/updates
Update flake & cargo dependencies
2024-08-21 10:07:40 +02:00
Maximilian Bosch
64aa46519c
Update flake & cargo dependencies
Needed so that it builds with Rust 1.80 again, currently it fails for me
with

    error[E0282]: type annotations needed for `Box<_>`
      --> /nix/store/1s1dfkw9b28iy8nbc6mybn2fx6j1cll0-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/time-0.3.34/src/format_description/parse/mod.rs:83:9
       |
    83 |     let items = format_items
       |         ^^^^^
    ...
    86 |     Ok(items.into())
       |              ---- type must be known at this point
       |
    help: consider giving `items` an explicit type, where the placeholders `_` are specified
       |
    83 |     let items: Box<_> = format_items
       |              ++++++++

        Checking regex-automata v0.4.6
        Checking nb-connect v1.2.0
        Checking indicatif v0.17.8
       Compiling rand v0.8.5
        Checking tempfile v3.10.1
    For more information about this error, try `rustc --explain E0282`.
    error: could not compile `time` (lib) due to 1 previous error
    warning: build failed, waiting for other jobs to finish...
2024-08-20 21:05:29 +02:00
Maximilian Bosch
08e1658d7f
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/8b08e96c9af8c6e3a2b69af5a7fa168750fcf88e' (2023-07-07)
  → 'github:ipetkov/crane/7ce92819802bc583b7e82ebc08013a530f22209f' (2024-08-18)
• Removed input 'crane/flake-compat'
• Removed input 'crane/flake-utils'
• Removed input 'crane/rust-overlay'
• Updated input 'flake-compat':
    'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
  → 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25)
  → 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3c7487575d9445185249a159046cc02ff364bff8' (2023-07-06)
  → 'github:nixos/nixpkgs/8a3354191c0d7144db9756a74755672387b702ba' (2024-08-18)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/5a932f10ac4bd59047d6e8b5780750ec76ea988a' (2023-07-09)
  → 'github:oxalica/rust-overlay/48e61fe824f5823e4f3f15dd9a75c19c63649269' (2024-08-20)
• Removed input 'rust-overlay/flake-utils'
2024-08-20 21:00:32 +02:00
FliegendeWurst
643e29dadf Update dependencies 2024-03-06 12:18:28 +01:00
FliegendeWurst
ee7c3e2e6a Update dependencies 2024-01-19 13:32:38 +01:00
Arne Keller
ab4aba1827
Update README.md with another tool 2023-11-18 18:19:22 +01:00
Arne Keller
7a479063d0
Update README.md 2023-11-01 23:39:19 +01:00
FliegendeWurst
06075abeaf Update dependencies 2023-10-18 21:07:15 +02:00
Arne Keller
f26c0227cb
Merge pull request #48 from FliegendeWurst/dependabot/cargo/rustix-0.37.25
Bump rustix from 0.37.23 to 0.37.25
2023-10-18 21:06:31 +02:00
dependabot[bot]
3781681aec
Bump rustix from 0.37.23 to 0.37.25
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.37.23 to 0.37.25.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.23...v0.37.25)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 18:48:53 +00:00
Arne Keller
2e2cbe01ba
Merge pull request #46 from FliegendeWurst/dependabot/cargo/rustls-webpki-0.101.4
Bump rustls-webpki from 0.101.1 to 0.101.4
2023-08-22 21:12:17 +02:00
dependabot[bot]
0fcb087d25
Bump rustls-webpki from 0.101.1 to 0.101.4
Bumps [rustls-webpki](https://github.com/rustls/webpki) from 0.101.1 to 0.101.4.
- [Release notes](https://github.com/rustls/webpki/releases)
- [Commits](https://github.com/rustls/webpki/compare/v/0.101.1...v/0.101.4)

---
updated-dependencies:
- dependency-name: rustls-webpki
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 18:09:09 +00:00
FliegendeWurst
9a64d0aee5 Version 0.3.7 2023-07-24 08:52:31 +02:00
FliegendeWurst
2d59d2280e Update dependencies 2023-07-24 08:50:34 +02:00
Arne Keller
19202327b9
Merge pull request #45 from Ma27/flake
Init nix flake, fix build, add clippy+rustfmt
2023-07-22 15:25:38 +02:00
Maximilian Bosch
4c90a6029a
flake: Init
* Uses crane to build deps and code independently. Allows on development
  fast iterations by running `nix run` to run the program.
* Implements formatting and linting as checks.
2023-07-09 11:54:42 +02:00
Maximilian Bosch
3f326713ba
Fix clippy hints
* https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
  (-D clippy::collapsible-else-if)
* https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
  (-D clippy::needless-borrow)
* https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
  (-D clippy::into-iter-on-ref)
* https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
  (-D clippy::map-flatten)
* https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
  (-D clippy::len-zero)
2023-07-09 11:53:08 +02:00
Maximilian Bosch
05abc5bdad
Run cargo fmt 2023-07-09 11:36:01 +02:00
Maximilian Bosch
0396dfc096
Fix build 2023-07-09 11:35:29 +02:00
FliegendeWurst
ebe2db5987 Recognize when logged out 2023-06-12 09:19:37 +02:00
FliegendeWurst
b74b9e8169
Merge pull request #41 from FliegendeWurst/dependabot/cargo/tokio-1.24.2 2023-02-05 18:36:36 +01:00
dependabot[bot]
60360b7e2d
Bump tokio from 1.23.1 to 1.24.2
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.1 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-04 00:54:55 +00:00
FliegendeWurst
be52d67364
Merge pull request #39 from FliegendeWurst/dependabot/cargo/tokio-1.23.1
Bump tokio from 1.21.2 to 1.23.1
2023-01-07 18:44:25 +01:00
dependabot[bot]
e98973dd12
Bump tokio from 1.21.2 to 1.23.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.2 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.2...tokio-1.23.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 21:49:55 +00:00
FliegendeWurst
ff982a5723 Expand individual sessions 2022-12-19 19:13:08 +01:00
FliegendeWurst
cc7dcd6f9d feat: respect .iliasignore files in parent folder
see #38
2022-11-23 15:10:39 +01:00
FliegendeWurst
07dc3a9be2
Explain common error source in readme 2022-11-01 11:09:39 +01:00
FliegendeWurst
60426dd5ca
Update CHANGELOG.md 2022-10-30 15:20:04 +01:00
FliegendeWurst
603c3eef7c
Merge pull request #36 from spaceXrace/master 2022-10-30 15:18:54 +01:00
spaceXrace
e7728e31a9
Update README.md
include command to install Rust on macOS
2022-10-26 16:08:08 +02:00
FliegendeWurst
1ea88fb193 Version 0.3.6 2022-10-21 09:52:39 +02:00
FliegendeWurst
dbfa3cf3ad Update dependencies 2022-10-21 09:50:15 +02:00
FliegendeWurst
f2c9ce5fa0 Apply rustfmt 2022-10-21 09:50:13 +02:00
FliegendeWurst
e3208a1579
Merge pull request #35 from funnym0nk3y/patch-video 2022-08-31 14:15:02 +02:00
funnym0nk3y
596c7dd355 Fixed video regex 2022-08-31 01:01:47 +02:00
funnym0nk3y
5b18f43500 Merge branch 'master' of https://github.com/FliegendeWurst/KIT-ILIAS-downloader 2022-08-31 00:32:41 +02:00
FliegendeWurst
f0bce36ee0
Merge pull request #34 from Ma27/pass-first-line-only 2022-08-14 13:39:27 +02:00
Maximilian Bosch
8131acc75a
pass login: Only use first line from result
It's possible to create multi-line entries in `pass(1)` where additional
lines have further metadata, e.g.

    $ pass show kit-access
    <secret pw>
    user: uXXXX

which can be helpful to persist e.g. the corresponding username.

However it's a convention that the password is only in the first line,
e.g. `pass show -c` (which is used by `passmenu` to copy a secret into
the clipboard) only the first line is used by default.

I switched to such an approach recently and realized that this is now a
problem because `KIT-ILIAS-Downloader` passes the entire string to the
SAML login, so I decided to just strip everything after the first line
in the output of `pass show`.

We may want to implement support for extracting usernames from such a
format in the future, but... that's an exercise left for the reader ;-)
2022-08-06 14:33:33 +02:00
FliegendeWurst
a48060a9a5 Update readme and changelog 2022-07-11 10:22:47 +02:00
FliegendeWurst
1eb354865e Update dependencies 2022-07-11 10:21:51 +02:00
FliegendeWurst
38ce269d70
Merge pull request #33 from Ma27/pass-integration 2022-07-11 09:42:37 +02:00
Maximilian Bosch
3a83840f15
cli: Support for pass(1) as credential storage
`pass(1)`[1] is a small CLI-based password manager. When passing
`--pass-path edu/kit/uXXXX` to `KIT-ILIAS-Downloader`, it now attempts
to retrieve the password from `pass(1)`.

It is assumed that `pass(1)` is available in the `$PATH` of the process. If
that's not the case, it errors out with an error like this:

    Error: credentials input failed

    Caused by:
        pass not found in $PATH!

It's also taken care of the case where the value `--pass-path` is not
present in the store, the error will look like this:

    Error: credentials input failed

    Caused by:
        `pass` failed with non-zero exit code 1: Error: edu/kit/uXXXX is not in the password store.

Closes #32

[1] https://www.passwordstore.org/
2022-07-10 12:34:03 +02:00
FliegendeWurst
f21c0249ed
Fix changelog typo 2022-06-05 17:50:31 +02:00
FliegendeWurst
4dfdf35a4c Version 0.3.4 2022-06-05 17:46:42 +02:00
FliegendeWurst
e2e5f515a0 Fix keyring option on Linux
By applying a patch on keyring-rs
2022-06-05 17:41:47 +02:00
FliegendeWurst
147af49eb8 Warn the user on duplicate folder names
See #31
2022-04-26 21:47:17 +02:00
FliegendeWurst
1953a019aa
Update README.md 2022-03-21 11:57:45 +01:00
FliegendeWurst
fcf5ad10ed Version 0.3.3 2022-03-21 11:48:19 +01:00
FliegendeWurst
372f9d67d2 Update dependencies 2022-03-21 11:47:01 +01:00
FliegendeWurst
8906069a67 Add command-line option to download all courses 2022-03-21 11:44:06 +01:00