summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-01-22 22:34:17 +0100
committerfxqnlr <[email protected]>2023-01-22 22:34:17 +0100
commit1890d59428dfcca861ea1b7820411d80cc60d713 (patch)
tree559a41a814a33a72ccab3640a6c81d10451f1683 /src/config.rs
parentf7a6d2e9c67c1fdf8fc17fa0461a201fd2720537 (diff)
downloadmodlist-1890d59428dfcca861ea1b7820411d80cc60d713.tar
modlist-1890d59428dfcca861ea1b7820411d80cc60d713.tar.gz
modlist-1890d59428dfcca861ea1b7820411d80cc60d713.zip
Added list version cmd, fixed some todos
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 383e7ee..ded0062 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -25,7 +25,6 @@ impl Cfg {
25 if err.kind() == std::io::ErrorKind::NotFound { 25 if err.kind() == std::io::ErrorKind::NotFound {
26 println!("No config file found, creating one"); 26 println!("No config file found, creating one");
27 let default_cfg = Cfg { data: String::from("./"), apis: Apis { modrinth: String::from("https://api.modrinth.com/v2/") } }; 27 let default_cfg = Cfg { data: String::from("./"), apis: Apis { modrinth: String::from("https://api.modrinth.com/v2/") } };
28 //TODO Error
29 let mut file = File::create(devdir(configfile.to_str().unwrap()))?; 28 let mut file = File::create(devdir(configfile.to_str().unwrap()))?;
30 println!("Created config file"); 29 println!("Created config file");
31 file.write_all(&toml::to_string(&default_cfg)?.as_bytes())?; 30 file.write_all(&toml::to_string(&default_cfg)?.as_bytes())?;