1pub mod cli;
2pub mod client;
3pub mod commands;
4pub mod common;
5
6use cli::{Args, Command};
7
8use crate::common::init;
9
10pub async fn run(args: Args) -> anyhow::Result<()> {
11 init::ensure_config_exists()?;
12 match args.command {
13 Command::Help => commands::help::Help::help_log().await?,
14 Command::Config(args) => commands::config::handle_config(args).await?,
15 Command::Create(args) => commands::create::handle_create(args).await?,
16 Command::Wallet(args) => commands::wallet::handle_wallet(args).await?,
17 }
18 Ok(())
19}