diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 20:30:33 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-07 16:57:24 +0800 |
| commit | d8e729279c6e421b7513638f5b8d7d46cc760802 (patch) | |
| tree | c21c4b580020fa2a2b5ad05d3ac0404918b0cb6c /mingling_cli/src/metadata.rs | |
| parent | 7d86338c64a1761ac8db8b1977fcfd6912ae71ce (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/src/metadata.rs')
| -rw-r--r-- | mingling_cli/src/metadata.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mingling_cli/src/metadata.rs b/mingling_cli/src/metadata.rs index 2e7aeef..f11ae36 100644 --- a/mingling_cli/src/metadata.rs +++ b/mingling_cli/src/metadata.rs @@ -4,7 +4,7 @@ use mingling::{ macros::{buffer, group, program_setup, r_println, renderer, renderify}, }; -use crate::metadata::{cmd_metadata::CMDMetadata, setup::CargoMetadataSetup}; +use crate::metadata::setup::CargoMetadataSetup; pub mod cmd_metadata; pub mod setup; @@ -12,7 +12,6 @@ pub mod setup; #[program_setup] pub fn mingling_metadata_setup(program: &mut Program<crate::ThisProgram>) { program.with_setup(CargoMetadataSetup); - program.with_dispatcher(CMDMetadata); } group!(Metadata); |
