diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-08 18:40:17 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-08 18:44:24 +0100 |
commit | 1f0b94c5cc023fb1b259b92fde572ec173571f0b (patch) | |
tree | 8d4a9c561be3cd6beaf30900862190098151971c | |
parent | d497c550f3acce6b15bc60f792f5d4c25693fef8 (diff) |
Restructure module layout
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | cli/src/commands/mod.rs | 2 | ||||
-rw-r--r-- | cli/src/main.rs | 4 | ||||
-rw-r--r-- | cli/src/profile.rs (renamed from cli/src/commands/profile.rs) | 0 |
3 files changed, 2 insertions, 4 deletions
diff --git a/cli/src/commands/mod.rs b/cli/src/commands/mod.rs deleted file mode 100644 index 5569bcb..0000000 --- a/cli/src/commands/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod profile; -pub use profile::profile; diff --git a/cli/src/main.rs b/cli/src/main.rs index 99ac4d1..c4050ac 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -1,7 +1,7 @@ use anyhow::Result; mod cli; -mod commands; +mod profile; #[tokio::main] async fn main() -> Result<()> { @@ -9,7 +9,7 @@ async fn main() -> Result<()> { let matches = crate::cli::app().get_matches(); match matches.subcommand() { - Some(("profile", matches)) => crate::commands::profile(matches).await, + Some(("profile", matches)) => crate::profile::profile(matches).await, Some(("gui", _)) => { unimplemented!() }, diff --git a/cli/src/commands/profile.rs b/cli/src/profile.rs index 0eb8b75..0eb8b75 100644 --- a/cli/src/commands/profile.rs +++ b/cli/src/profile.rs |