summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-05 13:17:11 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-06 16:29:01 +0100
commit13a59045f8b692575ea7625d9d3f13895830ac5a (patch)
tree7a811a5cc8a045c1519b73d61c7dddc1368bd5a8 /src/main.rs
parent397805100d2fc48937652b4c54a8870501966301 (diff)
Add CLI for creating profile
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index ef413c6..257847c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,6 +2,7 @@ use anyhow::Result;
pub mod cli;
pub mod client;
+mod commands;
pub mod config;
pub mod consts;
pub mod ipfs_client;
@@ -11,7 +12,13 @@ pub mod types;
#[tokio::main]
async fn main() -> Result<()> {
let _ = env_logger::try_init()?;
- let _ = crate::cli::app();
- Ok(())
+ let matches = crate::cli::app().get_matches();
+
+ match matches.subcommand() {
+ Some(("profile", matches)) => crate::commands::profile(matches).await,
+ _ => unimplemented!()
+ }
+
+
}