calib-targets 0.7.2

Main entry point crate for a collection of plain calibration target detectors built on top of ChESS corners
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! `validate --spec ...` — load a spec JSON and report the target kind on success.

use calib_targets_print::PrintableTargetDocument;
use std::path::PathBuf;

use super::error::CliError;

pub fn run(spec: PathBuf) -> Result<(), CliError> {
    let doc = PrintableTargetDocument::load_json(&spec)?;
    println!("valid {}", doc.target.kind_name());
    Ok(())
}