diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 11 |
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!() + } + + } |