diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-14 21:57:06 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-14 21:57:06 +0800 |
| commit | 59d9fbdf0873b241774366a91c76728d63a9004d (patch) | |
| tree | ad93f4f34b4ff9afb7fb3edfc2de5ed6c826bb70 /mingling_cli/src/main.rs | |
| parent | 8ed25a022daaf0c9d50b3cb224cb67598e383e65 (diff) | |
| parent | 33469c75614c444f512fd51dbc78a31a9a4bec82 (diff) | |
Add argument filtering and CLI build support
Diffstat (limited to 'mingling_cli/src/main.rs')
| -rw-r--r-- | mingling_cli/src/main.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mingling_cli/src/main.rs b/mingling_cli/src/main.rs index c4dfe21..a0066f4 100644 --- a/mingling_cli/src/main.rs +++ b/mingling_cli/src/main.rs @@ -1,16 +1,16 @@ use mingling::{macros::gen_program, setup::BasicProgramSetup}; -mod add_dispatcher; -pub use crate::add_dispatcher::*; +mod dispatcher_mgr; +pub use crate::dispatcher_mgr::*; #[tokio::main] async fn main() { - let mut program = MinglingCLI::new(); + let mut program = ThisProgram::new(); program.with_setup(BasicProgramSetup); - program.with_dispatcher(AddDispatcherCommand); + program.with_dispatcher(CompletionDispatcher); + program.with_dispatchers((AddDispatcherCommand, RemoveDispatcherCommand)); - let render_result = program.exec_without_render().await.unwrap(); - println!("{}", render_result); + program.exec().await; } -gen_program!(MinglingCLI); +gen_program!(); |
