Check binary location and version.
(dc: &mut DoctorCounters)
| 168 | |
| 169 | /// Check binary location and version. |
| 170 | fn check_binary(dc: &mut DoctorCounters) { |
| 171 | eprintln!("\x1b[1mBinary\x1b[0m"); |
| 172 | if let Ok(exe) = std::env::current_exe() { |
| 173 | dc.pass(&format!("Binary: {}", exe.display())); |
| 174 | } else { |
| 175 | dc.fail("Could not determine binary path"); |
| 176 | } |
| 177 | dc.pass(&format!("Version: {}", env!("CARGO_PKG_VERSION"))); |
| 178 | } |
| 179 | |
| 180 | /// Check global database exists. |
| 181 | fn check_global_db(dc: &mut DoctorCounters) { |
no test coverage detected