greentic-component 0.5.2

High-level component loader and store for Greentic components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::process;

#[cfg(feature = "cli")]
use greentic_component::cmd::doctor;

#[cfg(not(feature = "cli"))]
fn main() {
    eprintln!("component-doctor requires the `cli` feature");
    process::exit(1);
}

#[cfg(feature = "cli")]
fn main() {
    if let Err(err) = doctor::run(doctor::parse_from_cli()) {
        eprintln!("component-doctor[{}]: {err}", err.code());
        process::exit(1);
    }
}