z_mirror/fmm

git clone https://git.raiguard.me/z_mirror/fmm

raiguardMove old code to remove warnings59fb9e2

rewrite
821 B36 linesraw
1// // Find or create config file
2// let config_file = ConfigFile::new(&app.config)?;
3// if let Some(config_file) = config_file {
4//     app.merge_config(config_file);
5// }
6
7// if let Some(dir) = &app.dir {
8//     let mut set = ModsSet::new(dir)?;
9
10//     for mod_ident in app.remove.iter() {
11//         set.remove(mod_ident)?;
12//     }
13
14//     if app.dedup {
15//         set.dedup()?;
16//     }
17
18//     if app.disable_all {
19//         set.disable_all(app.include_base_mod);
20//     }
21
22//     if app.enable_all {
23//         set.enable_all();
24//     }
25
26//     for mod_ident in app.disable.iter() {
27//         set.disable(mod_ident)?;
28//     }
29
30//     set.enable_list(app.enable)?;
31
32//     set.write_mod_list()?;
33//     Ok(())
34// } else {
35//     Err("Must specify a path either with the --dir flag or in fmm.toml".into())
36// }