()
| 34 | |
| 35 | #[tokio::main] |
| 36 | async 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 | } |
nothing calls this directly
no test coverage detected