diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-06 15:57:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-06 15:57:29 +0800 |
| commit | 9f8307ad9b0f1ce8301698277d2b8ab169ea5f7f (patch) | |
| tree | 58a6ec26279c91bd795f59fd2043e37c9e4de3eb /mingling_cli/src/main.rs | |
| parent | 505a2330e61f96243ea8ee38539e1c31c19f6dcd (diff) | |
Add CLI program for managing dispatchers
Diffstat (limited to 'mingling_cli/src/main.rs')
| -rw-r--r-- | mingling_cli/src/main.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mingling_cli/src/main.rs b/mingling_cli/src/main.rs new file mode 100644 index 0000000..c4dfe21 --- /dev/null +++ b/mingling_cli/src/main.rs @@ -0,0 +1,16 @@ +use mingling::{macros::gen_program, setup::BasicProgramSetup}; + +mod add_dispatcher; +pub use crate::add_dispatcher::*; + +#[tokio::main] +async fn main() { + let mut program = MinglingCLI::new(); + program.with_setup(BasicProgramSetup); + program.with_dispatcher(AddDispatcherCommand); + + let render_result = program.exec_without_render().await.unwrap(); + println!("{}", render_result); +} + +gen_program!(MinglingCLI); |
