diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-21 06:40:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-21 06:40:46 +0800 |
| commit | 04ce3a18efe971c5b6893977f0ebe1ce1d9a6947 (patch) | |
| tree | 0f70ebbfae3e89404603721a1505dbed0cd6371d /mingling_cli/src/main.rs | |
| parent | 8a230bd93b4801cc9001d0611ade16261e4f0cc4 (diff) | |
feat(mingling_cli): add metadata and linter commands with cargo analysis
Introduce `metadata` and `mlint` subcommands, wire up `cargo_metadata`
for manifest analysis, and enable procedural macro support in editors
Diffstat (limited to 'mingling_cli/src/main.rs')
| -rw-r--r-- | mingling_cli/src/main.rs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/mingling_cli/src/main.rs b/mingling_cli/src/main.rs index e7a11a9..59fa92d 100644 --- a/mingling_cli/src/main.rs +++ b/mingling_cli/src/main.rs @@ -1,3 +1,28 @@ +use crate::{linter::MinglingLinterSetup, metadata::MinglingMetadataSetup}; +use mingling::{ + macros::gen_program, + setup::{ + ExitCodeSetup, + picker::{HelpFlagSetup, StructuralRendererSetup}, + }, +}; + +pub mod linter; +pub mod metadata; + fn main() { - println!("Hello, world!"); + let mut program = ThisProgram::new(); + + // Setups + program.with_setup(HelpFlagSetup::default()); + program.with_setup(ExitCodeSetup::default()); + program.with_setup(StructuralRendererSetup); + + program.with_setup(MinglingMetadataSetup); + program.with_setup(MinglingLinterSetup); + + // Exec + program.exec_and_exit(); } + +gen_program!(); |
