MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / check_binary

Function check_binary

src/doctor.rs:170–178  ·  view source on GitHub ↗

Check binary location and version.

(dc: &mut DoctorCounters)

Source from the content-addressed store, hash-verified

168
169/// Check binary location and version.
170fn 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.
181fn check_global_db(dc: &mut DoctorCounters) {

Callers 1

run_doctorFunction · 0.85

Calls 2

passMethod · 0.80
failMethod · 0.80

Tested by

no test coverage detected