From 11e64fc7560de3cd0def718edf68c31e3dc8be72 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 15:08:55 +0200 Subject: move stuff around, remove lib.rs for overview --- src/commands/update.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/commands/update.rs') diff --git a/src/commands/update.rs b/src/commands/update.rs index f83030d..721ced5 100644 --- a/src/commands/update.rs +++ b/src/commands/update.rs @@ -1,18 +1,13 @@ use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; use crate::{ - config::Cfg, - db::{ + apis::modrinth::{extract_current_version, versions, Version}, config::Cfg, data::list::List, db::{ mods_get_info, userlist_change_versions, userlist_get_all_ids, userlist_get_applicable_versions, userlist_get_current_version, userlist_get_set_version, - }, - error::{EType, MLErr, MLE}, - files::{ + }, error::{EType, MLErr, MLE}, files::{ clean_list_dir, delete_version, disable_version, download_versions, - }, - modrinth::{extract_current_version, versions, Version}, - List, PROGRESS_CHARS, STYLE_BAR_POS, STYLE_OPERATION, + }, PROGRESS_CHARS, STYLE_BAR_POS, STYLE_OPERATION }; /// # Errors -- cgit v1.2.3