blob: fe2e60a27c532ee97579927593e57c5b18a85456 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use mingling::setup::{ExitCodeSetup, picker::HelpFlagSetup};
use mingling_cli::{
ThisProgram, linter::registry::LintRegistrySetup, metadata::MinglingMetadataSetup,
};
#[tokio::main]
async fn main() {
let mut program = ThisProgram::new();
// Setups
program.with_setup(HelpFlagSetup::default());
program.with_setup(ExitCodeSetup::default());
program.with_setup(MinglingMetadataSetup);
program.with_setup(LintRegistrySetup);
// Exec
program.exec_and_exit().await;
}
|