From 9976b31a56bcc3ed37ac878b351bd8d097dc67cc Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 21 Jul 2026 15:10:38 +0800 Subject: feat(mling): add linter framework with async support and registry generation --- mingling_cli/src/main.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'mingling_cli/src/main.rs') diff --git a/mingling_cli/src/main.rs b/mingling_cli/src/main.rs index 59fa92d..c822a12 100644 --- a/mingling_cli/src/main.rs +++ b/mingling_cli/src/main.rs @@ -1,28 +1,29 @@ use crate::{linter::MinglingLinterSetup, metadata::MinglingMetadataSetup}; use mingling::{ macros::gen_program, - setup::{ - ExitCodeSetup, - picker::{HelpFlagSetup, StructuralRendererSetup}, - }, + setup::{ExitCodeSetup, picker::HelpFlagSetup}, }; +pub mod diagnostic; +pub mod errors; pub mod linter; +pub mod lints; +pub mod message; pub mod metadata; -fn main() { +#[tokio::main] +async fn main() { 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(); + program.exec_and_exit().await; } gen_program!(); -- cgit