summaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: 257847c6a8251b508c077e9fe257ec7c44697d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use anyhow::Result;

pub mod cli;
pub mod client;
mod commands;
pub mod config;
pub mod consts;
pub mod ipfs_client;
pub mod profile;
pub mod types;

#[tokio::main]
async fn main() -> Result<()> {
    let _ = env_logger::try_init()?;
    let matches = crate::cli::app().get_matches();

    match matches.subcommand() {
        Some(("profile", matches)) => crate::commands::profile(matches).await,
        _ => unimplemented!()
    }


}