Skip to main content

run

Function run 

Source
pub fn run() -> Result<()>
Expand description

Executes the doctor command to perform system health checks.

Runs a series of diagnostic tests to verify that all required dependencies, kernel modules, and system resources are available. Prints results for each check and provides guidance on fixing issues.

§Output Format

Hexz Doctor - System Health Check

Checking fusermount... OK
Checking qemu-system-x86_64... OK
Checking FUSE kernel support (/dev/fuse)... OK
Checking Network Connectivity (DNS)... OK

Diagnosis complete.

§Errors

This command does not return errors. All diagnostic failures are reported as “FAIL” or “NOT FOUND” in the output, but the command itself succeeds. This allows the function to complete all checks even if some fail.

§Examples

use hexz_cli::cmd::sys::doctor;

// Run system diagnostics
doctor::run()?;