Add support for plugins and resource packs #11

Open
opened 2022-08-28 04:48:11 +00:00 by emma · 9 comments
Owner

More information

It would be great to be able to manage and update plugins and resource packs in addition to mods with hopper, and we should also consider updating from other sources if possible.

[More information](https://blog.modrinth.com/plugins-resource-packs/) It would be great to be able to manage and update plugins and resource packs in addition to mods with hopper, and we should also consider updating from other sources if possible.
emma added the
enhancement
label 2022-08-28 04:48:11 +00:00
spookdot was assigned by emma 2022-08-28 06:39:14 +00:00
Member

I can likely make add other sources. But this does leave the question how we would best design the CLI for this

Right now we usually write hopper get <searchTerm>

If we are going to differentiate between mods, plugins and resource packs it would be good to either allow a filter flag or to separate them entirely

So either hopper get <searchTerm> --mod, hopper get mod <searchTerm>, hopper get-mod <searchTerm> or hopper mod get <searchTerm>

I'd personally tend towards either a filter flag or something along the lines of get-mod, so people have all three options displayed in the main help command and don't have to look up the help command for the get subcommand

I can likely make add other sources. But this does leave the question how we would best design the CLI for this Right now we usually write `hopper get <searchTerm>` If we are going to differentiate between mods, plugins and resource packs it would be good to either allow a filter flag or to separate them entirely So either `hopper get <searchTerm> --mod`, `hopper get mod <searchTerm>`, `hopper get-mod <searchTerm>` or `hopper mod get <searchTerm>` I'd personally tend towards either a filter flag or something along the lines of get-mod, so people have all three options displayed in the main help command and don't have to look up the help command for the get subcommand
Author
Owner

For posterity:

get [OPTIONS] PACKAGE

 Searches for a PACKAGE, displays the results, and downloads any selected PACKAGES to the local cache.

OPTIONS

 -n, --no-confirm

  Does not display search results and downloads exact matches to the cache. Requires --mc-version and --type be specified.

The hopper get command should search all types of packages for the search term, only searching specifically if --mc-version and/or --type is specified.

For posterity: ``` get [OPTIONS] PACKAGE  Searches for a PACKAGE, displays the results, and downloads any selected PACKAGES to the local cache. OPTIONS  -n, --no-confirm   Does not display search results and downloads exact matches to the cache. Requires --mc-version and --type be specified. ``` The `hopper get` command should search all types of packages for the search term, only searching specifically if `--mc-version` and/or `--type` is specified.
Author
Owner

The types should be fabric, forge, quilt, resource (resource pack), and pack (modpack).

The types should be `fabric`, `forge`, `quilt`, `resource` (resource pack), and `pack` (modpack).
Member

What about plugins?

What about plugins?
Author
Owner

What about plugins?

oh. yea. plugin. oops lmao

> What about plugins? oh. yea. `plugin`. oops lmao
Member

Shouldn't we maybe differentiate between different plugin options? Like paper, purpur, Spigot and what not there are out now? Also maybe we should have options for fabric modpacks, forge modpacks and if there ever are any quilt modpacks?

Shouldn't we maybe differentiate between different plugin options? Like paper, purpur, Spigot and what not there are out now? Also maybe we should have options for fabric modpacks, forge modpacks and if there ever are any quilt modpacks?
Author
Owner

Shouldn't we maybe differentiate between different plugin options? Like paper, purpur, Spigot and what not there are out now? Also maybe we should have options for fabric modpacks, forge modpacks and if there ever are any quilt modpacks?

good point. probably should be $loader-pack and $loader-plugin, what do you think?

> Shouldn't we maybe differentiate between different plugin options? Like paper, purpur, Spigot and what not there are out now? Also maybe we should have options for fabric modpacks, forge modpacks and if there ever are any quilt modpacks? good point. probably should be `$loader-pack` and `$loader-plugin`, what do you think?
Member

I agree. Also keeps it a bit more clearer on the difference between modpack and resourcepack, since we're using resource for resourcepacks

I agree. Also keeps it a bit more clearer on the difference between modpack and resourcepack, since we're using `resource` for resourcepacks
Author
Owner

Some relevant docs changes have been made in #15 after some deliberation and further thought with @mars.

Some relevant docs changes have been made in #15 after some deliberation and further thought with @mars.
emma added this to the Release milestone 2022-12-18 01:40:22 +00:00
emma added reference rewrite 2023-03-23 02:56:57 +00:00
emma self-assigned this 2023-03-23 05:26:36 +00:00
emma added this to the Version 0.1.0 project 2023-03-27 17:01:20 +00:00
Sign in to join this conversation.
No description provided.