| 18 | } |
| 19 | |
| 20 | pub async fn run(api_client: &CodSpeedAPIClient, config: &CodSpeedConfig) -> Result<()> { |
| 21 | // Auth status |
| 22 | super::auth::status(api_client, config).await?; |
| 23 | info!(""); |
| 24 | |
| 25 | // Setup/tools status |
| 26 | super::setup::status(&[])?; |
| 27 | info!(""); |
| 28 | |
| 29 | // System info |
| 30 | info!("{}", style("System").bold()); |
| 31 | info!(" codspeed {VERSION}"); |
| 32 | let system_info = SystemInfo::new()?; |
| 33 | info!(" {} ({})", system_info.os, system_info.arch); |
| 34 | info!( |
| 35 | " {} ({}C / {}GB)", |
| 36 | system_info.cpu_brand, system_info.cpu_cores, system_info.total_memory_gb |
| 37 | ); |
| 38 | |
| 39 | Ok(()) |
| 40 | } |