diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 20:30:33 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-09 02:56:28 +0800 |
| commit | 1dac0affe311e70e8f5eccfe46253d08f69139d5 (patch) | |
| tree | 54db84dd14ef5895627198f7b48c13f997588843 /mingling_cli/build.rs | |
| parent | cbb805a78a04fb0df6f98b50f389fb5dc0b0fe48 (diff) | |
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.
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(); |
