aboutsummaryrefslogtreecommitdiff
path: root/mling
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-29 16:49:35 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-29 16:49:35 +0800
commit2c5355555126cf0e5e6012fb22457638bce9bf4d (patch)
tree020f0006f99655d81941ea1f2e718747ce0a5d33 /mling
parentc8d5b062a8f6ef0141e164e8d0249fa1c1d3bd98 (diff)
Rename CompletionDispatcher to CMDCompletion and hide internal types
Diffstat (limited to 'mling')
-rw-r--r--mling/src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mling/src/cli.rs b/mling/src/cli.rs
index 055f69c..87ba4f0 100644
--- a/mling/src/cli.rs
+++ b/mling/src/cli.rs
@@ -3,7 +3,7 @@ use mingling::{
setup::{BasicProgramSetup, GeneralRendererSetup},
};
-use crate::{CompletionDispatcher, DispatcherNotFound, ThisProgram, display::markdown};
+use crate::{CMDCompletion, DispatcherNotFound, ThisProgram, display::markdown};
pub mod list;
pub use list::*;
@@ -23,7 +23,7 @@ pub fn cli_entry() {
// Plugins
program.with_setup(BasicProgramSetup);
program.with_setup(GeneralRendererSetup);
- program.with_dispatcher(CompletionDispatcher);
+ program.with_dispatcher(CMDCompletion);
if program.pick_global_flag(["-v", "--version"]) {
println!("{}", include_str!("../res/version.txt").trim_end());