From 4e6466af1329f7b9e341df2e76ab696d11f80c93 Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Thu, 27 Apr 2023 10:08:20 +0200 Subject: version bump, cargo fmt and cargo update --- src/main.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 30c4001..0ecb850 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,8 +2,8 @@ use clap::{Parser, Subcommand}; use modlist::{ config::Cfg, db::{config_get_current_list, lists_get, lists_get_all_ids}, - download, export, get_current_list, import, list_add, list_change, list_remove, - list_version, mod_add, mod_remove, update, IDSelector, List, Modloader, + download, export, get_current_list, import, list_add, list_change, list_remove, list_version, + mod_add, mod_remove, update, IDSelector, List, Modloader, }; //TODO implement remote sql db @@ -14,7 +14,7 @@ use modlist::{ struct Cli { #[command(subcommand)] command: Commands, - + /// config file path #[arg(short, long)] config: Option, @@ -146,7 +146,7 @@ enum ListCommands { #[tokio::main] async fn main() { let cli = Cli::parse(); - + let config = Cfg::init(cli.config).unwrap(); println!("{:?}", config); @@ -253,14 +253,12 @@ async fn main() { Commands::Import { file, download } => { let filestr: String = match file { Some(args) => args, - None => - dirs::home_dir() - .unwrap() - .join("mlexport.toml") - .into_os_string() - .into_string() - .unwrap() - , + None => dirs::home_dir() + .unwrap() + .join("mlexport.toml") + .into_os_string() + .into_string() + .unwrap(), }; import(config, filestr, download).await -- cgit v1.2.3