aboutsummaryrefslogtreecommitdiff
path: root/src/cli/entry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/entry.rs')
-rw-r--r--src/cli/entry.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cli/entry.rs b/src/cli/entry.rs
new file mode 100644
index 0000000..e68b7b4
--- /dev/null
+++ b/src/cli/entry.rs
@@ -0,0 +1,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;
+}