aboutsummaryrefslogtreecommitdiff
path: root/mingling_cli/src/main.rs
blob: a0066f4ba520dce3ab8cbb6392b070dd618674b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use mingling::{macros::gen_program, setup::BasicProgramSetup};

mod dispatcher_mgr;
pub use crate::dispatcher_mgr::*;

#[tokio::main]
async fn main() {
    let mut program = ThisProgram::new();
    program.with_setup(BasicProgramSetup);
    program.with_dispatcher(CompletionDispatcher);
    program.with_dispatchers((AddDispatcherCommand, RemoveDispatcherCommand));

    program.exec().await;
}

gen_program!();