From fc0df246c2f55985de1813a9c30eb0c6e61c8a99 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 3 Aug 2026 20:30:33 +0800 Subject: feat(cli): add dynamic completion scripts and global help Enable the dispatch_tree and comp features to generate completion scripts during build and register global help and completion support in the main entry point. --- mingling_cli/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mingling_cli/build.rs') diff --git a/mingling_cli/build.rs b/mingling_cli/build.rs index ec4f208..3ba921b 100644 --- a/mingling_cli/build.rs +++ b/mingling_cli/build.rs @@ -1,4 +1,4 @@ -use mingling::build::analyze_and_build_type_mapping; +use mingling::build::{analyze_and_build_type_mapping, build_comp_scripts}; pub mod pre; @@ -6,6 +6,9 @@ fn main() { // Perform path analysis and build type mapping table analyze_and_build_type_mapping().ok(); + // Generate Mingling CLI Completion Scripts + build_comp_scripts("mingling-cli").unwrap(); + // Generate lint registry pre::gen_mod_file().unwrap(); pre::gen_lint_registry().unwrap(); -- cgit