use crate::error::Result;
pub fn run() -> Result<()> {
println!("augent {}", env!("CARGO_PKG_VERSION"));
println!();
println!("Build info:");
println!(" Rust version: {}", rustc_version());
println!(" Profile: {}", build_profile());
Ok(())
}
fn rustc_version() -> &'static str {
env!("CARGO_PKG_RUST_VERSION")
}
fn build_profile() -> &'static str {
if cfg!(debug_assertions) {
"debug"
} else {
"release"
}
}