run

Function run 

Source
pub fn run(
    ctx: &CommandContext,
    json_output: bool,
    warn_as_error: bool,
) -> Result<()>
Expand description

Runs the system health check command.

When json_output is enabled, the report is written to stdout as JSON. When warn_as_error is enabled, warnings produce a non-zero exit code.