diff --git a/src/main.rs b/src/main.rs index 3ed6285..49d20e9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,8 +59,25 @@ impl Default for Upstream { } } +#[derive(Deserialize, Serialize, Debug)] +struct Options { + /// Whether to reverse search results + reverse_search: bool, +} + +impl Default for Options { + fn default() -> Self { + Self { + reverse_search: true, + } + } +} + #[derive(Deserialize, Serialize, Debug, Default)] struct Config { + /// General settings + options: Options, + /// Configuration for the upstream Modrinth server upstream: Upstream, } @@ -135,9 +152,16 @@ async fn search_mods(config: &Config, query: String) -> anyhow::Result