diff --git a/.DS_Store b/.DS_Store index 8d1421c..ef3487b 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json index 5f14c08..7210e1a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,9 +1,4 @@ { - "workbench.colorCustomizations": { - "activityBar.background": "#462511", - "titleBar.activeBackground": "#613417", - "titleBar.activeForeground": "#FDFAF8" - }, "rust-analyzer.linkedProjects": [ "./Cargo.toml", "./utils-server/Cargo.toml", diff --git a/Cargo.toml b/Cargo.toml index daa5cde..2a2b94e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,39 +8,32 @@ version = "1.1.1" license = "Apache-2.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - - - - [workspace] members = [".", "entity", "migration",] exclude = ["sandbox"] - - - [dependencies] +anyhow = "1.0.86" assert_cmd = "2.0.16" bcrypt = "0.15.1" chrono = "0.4.38" -clap = {version = "4.5.16", features = ["derive"] } +clap = { version = "4.5.16", features = ["derive"] } +configparser = "3.1.0" +confy = "0.6.1" console = "0.15.8" -dialoguer = {version = "0.10.4", features = ["fuzzy-select", "completion"] } +dialoguer = { version = "0.10.4", features = ["fuzzy-select", "completion"] } dirs = "5.0.1" include_dir = "0.7.4" indicatif = "0.17.8" lazy_static = "1.5.0" -serde = { version = "1.0.209", features = ["derive"] } -serde_json = "1.0.127" -tokio = {version = "1.39.3", features = ["macros", "rt-multi-thread"] } -uuid = {version = "1.10.0", features = ["v4", "fast-rng", "macro-diagnostics"] } -sea-orm = { version = "0.12", features = [ "sqlx-sqlite", "runtime-tokio-native-tls", "macros" , "with-uuid", "with-time"] } -anyhow = "1.0.86" -utils-cli-entity = { path = "entity", version = "1.0.5"} -utils-cli-migration = { path = "migration", version = "1.0.0"} online = "4.0.2" -configparser = "3.1.0" regex = "1.10.6" -confy = "0.6.1" +sea-orm = { version = "0.12", features = [ "sqlx-sqlite", "runtime-tokio-native-tls", "macros" , "with-uuid", "with-time"] } +serde = { version = "1.0.209", features = ["derive"] } +serde_json = "1.0.127" +tokio = { version = "1.39.3", features = ["macros", "rt-multi-thread"] } +utils-cli-entity = { path = "entity", version = "1.0.5" } +utils-cli-migration = { path = "migration", version = "1.0.0" } +uuid = { version = "1.10.0", features = ["v4", "fast-rng", "macro-diagnostics"] } diff --git a/src/main.rs b/src/main.rs index d8bad76..7ce7f6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,7 +75,6 @@ async fn main() -> Result<()> { println!("database live at {}", DB_URL.as_str()); } - // run the cli parser parser::Utils::run().await; diff --git a/src/parser.rs b/src/parser.rs index 9be12ee..587c02c 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -4,7 +4,7 @@ use commands::{ store::StoreCommands, }; -use crate::{commands}; +use crate::commands; //acf #[derive(Parser)] @@ -27,8 +27,7 @@ impl Utils { Commands::Sync => CliCommands::sync().await, Commands::Auth(auth) => AuthCommands::parser(auth), Commands::Config => { - todo!() - + todo!() } } }