diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 20:30:33 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-03 20:38:02 +0800 |
| commit | fc0df246c2f55985de1813a9c30eb0c6e61c8a99 (patch) | |
| tree | 122187b5013b0021ca86fd830e5c170424dcab01 /mingling_cli/build.rs | |
| parent | f7862affd74ac3b129f9e9791a4cd4e1c7e3e6d1 (diff) | |
feat(cli): add dynamic completion scripts and global helpwip/mingling-cli-ux
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.
Diffstat (limited to 'mingling_cli/build.rs')
| -rw-r--r-- | mingling_cli/build.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |
