1
2
3
4
5
6
7
8
9
10
use crate::command::handler;
use crate::command::types::Opts;

/// Execute command
pub async fn execute(opts: Opts) -> color_eyre::Result<()> {
    match opts {
        Opts::Init { bridge } => handler::handle_init(bridge).await,
        Opts::Start => handler::handle_relay().await,
    }
}