From 363fbc6e98f832471a17a10ec18e8823df6a2ed5 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 16 Apr 2026 21:31:57 +0800 Subject: Initialize Rust project with billing calculation functionality --- src/cli/entry.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/cli/entry.rs (limited to 'src/cli/entry.rs') 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; +} -- cgit