From 0f5223d3d3f6aeb6bb1a0b09ad3d4ef5731774dd Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sat, 5 Nov 2022 21:53:24 +0100 Subject: added setup & download; direct input --- src/commands/modification.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/commands/modification.rs') diff --git a/src/commands/modification.rs b/src/commands/modification.rs index b90c82c..e877a63 100644 --- a/src/commands/modification.rs +++ b/src/commands/modification.rs @@ -34,9 +34,12 @@ async fn add(config: Cfg, args: Vec) -> Result<(), Box { @@ -44,10 +47,10 @@ async fn add(config: Cfg, args: Vec) -> Result<(), Box insert_mod_in_list(config.clone(), current_list, String::from(&project.id), current_version, available_versions)?, + Err(..) => insert_mod_in_list(config.clone(), current_list, String::from(&project.id), current_version.id, available_versions, file)?, }; match get_mods(config.clone()) { -- cgit v1.2.3