ecr-cli 0.2.0

The ecr command line: setup, diagnostics, server lifecycle and pairing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub async fn run(json: bool) -> anyhow::Result<()> {
    let report = ecr_store::doctor::run().await;

    if json {
        println!("{}", serde_json::to_string_pretty(&report)?);
    } else {
        print!("{}", ecr_store::doctor::render(&report));
    }

    if !report.is_healthy() {
        std::process::exit(1);
    }
    Ok(())
}