aboutsummaryrefslogtreecommitdiff
path: root/src/cli/entry.rs
blob: e68b7b421bd4a71599889818e86bfcc186af0d9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use mingling::setup::GeneralRendererSetup;

use crate::__completion_gen::CompletionDispatcher;
use crate::ThisProgram;
use crate::cli::dispatchers::*;

pub async fn entry() {
    let mut program = ThisProgram::new();

    // Add Completion
    program.with_dispatcher(CompletionDispatcher);

    // Add General Renderer
    program.with_setup(GeneralRendererSetup);

    // Setup `cobill`
    program.with_setup(ChaosBillingSetup);

    // Execute
    program.exec().await;
}