MCPcopy Create free account
hub / github.com/bitcoindevkit/bdk-cli / main

Function main

src/main.rs:36–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35#[tokio::main]
36async fn main() {
37 env_logger::init();
38 let cli_opts: CliOpts = CliOpts::parse();
39
40 let network = &cli_opts.network;
41 debug!("network: {network:?}");
42 if network == &Network::Bitcoin {
43 warn!(
44 "This is experimental software and not currently recommended for use on Bitcoin mainnet, proceed with caution."
45 )
46 }
47
48 match handle_command(cli_opts).await {
49 Ok(result) => println!("{result}"),
50 Err(e) => {
51 error!("{e}");
52 std::process::exit(1);
53 }
54 }
55}

Callers

nothing calls this directly

Calls 1

handle_commandFunction · 0.85

Tested by

no test coverage detected