summaryrefslogtreecommitdiff
path: root/src/commands/io.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-02-19 11:49:23 +0100
committerfxqnlr <[email protected]>2023-02-19 11:49:23 +0100
commit9c984cef9a2d0fb223635617934959480e8ca2df (patch)
tree4e9bcae11b2f028822591ea2948e311dded2de10 /src/commands/io.rs
parentff23a11e632812b685f594324e6004c6da81cd4d (diff)
downloadmodlist-9c984cef9a2d0fb223635617934959480e8ca2df.tar
modlist-9c984cef9a2d0fb223635617934959480e8ca2df.tar.gz
modlist-9c984cef9a2d0fb223635617934959480e8ca2df.zip
Added adding of specific mod-version
Diffstat (limited to 'src/commands/io.rs')
-rw-r--r--src/commands/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/io.rs b/src/commands/io.rs
index 44604d1..a3d056f 100644
--- a/src/commands/io.rs
+++ b/src/commands/io.rs
@@ -2,7 +2,7 @@ use std::fs::File;
2use std::io::prelude::*; 2use std::io::prelude::*;
3use serde::{Serialize, Deserialize}; 3use serde::{Serialize, Deserialize};
4 4
5use crate::{input::{Input, IoOptions}, db::{lists_get, userlist_get_all_ids, lists_get_all_ids, lists_insert}, config::Cfg, Modloader, List, devdir, error::MLE, mods_add}; 5use crate::{input::{Input, IoOptions}, db::{lists_get, userlist_get_all_ids, lists_get_all_ids, lists_insert}, config::Cfg, Modloader, List, devdir, error::MLE, mods_add, IDSelector};
6 6
7#[derive(Debug, Serialize, Deserialize)] 7#[derive(Debug, Serialize, Deserialize)]
8struct Export { 8struct Export {
@@ -82,7 +82,7 @@ async fn import(config: Cfg, input: Input) -> MLE<()> {
82 let mods: Vec<&str> = exportlist.mods.split('|').collect(); 82 let mods: Vec<&str> = exportlist.mods.split('|').collect();
83 let mut mod_ids = vec![]; 83 let mut mod_ids = vec![];
84 for mod_id in mods { 84 for mod_id in mods {
85 mod_ids.push(String::from(mod_id)); 85 mod_ids.push(IDSelector::ModificationID(String::from(mod_id)));
86 }; 86 };
87 //TODO impl set_version and good direct download 87 //TODO impl set_version and good direct download
88 //TODO impl all at once, dafuck 88 //TODO impl all at once, dafuck