Commit Graph

15 Commits

Author SHA1 Message Date
Emma Tebibyte a0453f1cc3
updated deps 2023-03-25 19:21:15 -04:00
Emma Tebibyte 0f1561e0c4
args.rs, client.rs: changed to reflect changes to usage text 2023-03-25 06:11:43 -04:00
Emma Tebibyte 53bd5ce4b3
made usage info, fixed configuration parsing, and made a better error for unimplemented subcommands 2023-03-25 05:03:27 -04:00
Emma Tebibyte 261b40cc0b
client.rs: changed PackageType parsing to fix compilation and removed reqwest-based code; main.rs, args.rs: cleanup 2023-03-24 14:50:10 -04:00
Emma Tebibyte 8a0315822e
fixed copyright headers, rewrote most of the original code 2023-03-23 00:18:42 -04:00
Emma Tebibyte 31db7e6fea
license header update 2023-03-22 18:56:07 -04:00
Emma Tebibyte 6dd9c4871d
arg types implemented 2023-03-22 18:25:31 -04:00
Emma Tebibyte 132d82680b Merge pull request 'Fix error when no facets are specifed' (#16) from BlankParenthesis/hopper:fix-filter into main
Reviewed-on: #16
2022-12-24 04:06:21 +00:00
Emma Tebibyte 5ae5aa668d Merge pull request 'Implement Error parsing for API responses' (#18) from BlankParenthesis/hopper:handle-status-errors into main
fixes #20
2022-12-24 03:56:06 +00:00
[ ] 552d75cbff Implement Error parsing for API responses 2022-12-09 06:01:37 +00:00
[ ] 9064888265 Add User-Agent to requests
Modrinth strongly encourages (via the following response header) that
access to their services be done with a uniquely identifying user-agent
string.

> "x-user-agent-notice": "!!!!! Hey, you! Yes, **you**! You need to
> change your User-Agent ASAP or you may be blocked from using
> Modrinth's services! For more information see the documentation:
> https://docs.modrinth.com/api-spec/#section/User-Agents !!!!!"

The one added here follows the documentation recommendation for the
"best" example of a user-agent string.
2022-12-09 05:13:43 +00:00
[ ] f7ba63b492 Fix error when no facets are specifed
The Modrinth API seemingly doesn't support an empty list for the facets
parameter. This solution simply skips adding that paremeter if it is
empty.
2022-12-09 04:18:15 +00:00
spookdot ace6b25381 Add plugins and modpack distinction 2022-09-16 18:51:55 +02:00
spookdot 6b37d007c7 Added package type filter 2022-09-12 01:05:23 +02:00
Spookdot f5b6afd790 Move functions into new HopperClient struct 2022-08-25 11:39:54 +02:00