aboutsummaryrefslogtreecommitdiff
path: root/examples/example-implicit-dispatcher/src/main.rs
blob: 69adcfef635c7fd279795929c66b4b13b0a1f10f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Example Implicit Dispatcher
//!
//! > This example demonstrates how to use the implicit `dispatcher!` definition syntax enabled by `extras`

use mingling::prelude::*;

// When using implicit syntax, the entry and dispatcher names will be automatically derived
dispatcher!("remote.add" /*, CMDRemoteAdd    => EntryRemoteAdd */);
dispatcher!("remote.remove", CMDRemoteRemove => EntryRemoteRemove);

fn main() {
    ThisProgram::new().exec_and_exit();
}

gen_program!();