aboutsummaryrefslogtreecommitdiff
path: root/examples/example-command-macro/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-command-macro/src/main.rs')
-rw-r--r--examples/example-command-macro/src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/example-command-macro/src/main.rs b/examples/example-command-macro/src/main.rs
index 2bf932a..d080043 100644
--- a/examples/example-command-macro/src/main.rs
+++ b/examples/example-command-macro/src/main.rs
@@ -19,14 +19,7 @@
use mingling::{macros::buffer, picker::IntoPicker, prelude::*};
fn main() {
- let mut program = ThisProgram::new();
-
- // Import the dispatchers generated by the `#[command]` macro
- program.with_dispatcher(CMDHelloWorld);
- program.with_dispatcher(CMDGreetSomeone);
- program.with_dispatcher(CMDGoodBye);
-
- program.exec_and_exit();
+ ThisProgram::new().exec_and_exit();
}
pack!(ResultGreeting = String);