From 2ec20c50e7c02d82b248835988df040bd266b659 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 4 Dec 2022 20:32:51 +0100 Subject: fully added mod remove; fixed update from NONE --- src/commands/modification.rs | 19 +++++++++++++++++-- src/commands/update.rs | 9 +++++---- 2 files changed, 22 insertions(+), 6 deletions(-) (limited to 'src/commands') diff --git a/src/commands/modification.rs b/src/commands/modification.rs index ac23970..f36c8c6 100644 --- a/src/commands/modification.rs +++ b/src/commands/modification.rs @@ -1,6 +1,6 @@ use std::io::{Error, ErrorKind}; -use crate::{modrinth::{project, versions, extract_current_version, Version}, config::Cfg, db::{mods_insert, userlist_remove, mods_get_id, userlist_insert, mods_get_all_ids, userlist_get_all_ids}, input::{Input, Subcmd}, get_current_list, download_versions}; +use crate::{modrinth::{project, versions, extract_current_version, Version}, config::Cfg, db::{mods_insert, userlist_remove, mods_get_id, userlist_insert, mods_get_all_ids, userlist_get_all_ids, userlist_get_current_version, lists_get_all_ids, mods_remove}, input::{Input, Subcmd}, get_current_list, download_versions, files::delete_version}; pub async fn modification(config: Cfg, input: Input) -> Result<(), Box> { @@ -87,6 +87,21 @@ fn remove(config: Cfg, args: Vec) -> Result<(), Box Result<(), Box