diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index c738eb8..7906463 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -47,6 +47,8 @@ enum Commands { }, /// List the checks that are enabled by default ListChecks, + /// Print version and build information + Version, } fn main() { @@ -150,6 +152,10 @@ fn main() { println!("{} | {} | {}", check.name(), severity, description); } } + Commands::Version => { + println!("{} {}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")); + println!("target: {}-{}", std::env::consts::ARCH, std::env::consts::OS); + } } }