miden-client-cli 0.14.5

The official command line client for interacting with the Miden network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::FromArgMatches;
use miden_client_cli::{Cli, MidenClientCli};

extern crate std;

#[tokio::main]
async fn main() -> miette::Result<()> {
    tracing_subscriber::fmt::init();

    // read command-line args
    let input = <MidenClientCli as clap::CommandFactory>::command();
    let matches = input.get_matches();
    let parsed = MidenClientCli::from_arg_matches(&matches).unwrap_or_else(|err| err.exit());
    let cli: Cli = parsed.into();

    // execute cli action
    Ok(cli.execute().await?)
}