Travail de l agent 4 bis (rapport 27), commite apres coup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lignes
558 B
Rust
9 lignes
558 B
Rust
//! atlas <sortie.json> <sig1.json> [sig2.json ...] : archétype (SignatureCible) à partir de signatures mesurées.
|
|
use signature::{archetype, Signature};
|
|
fn main() {
|
|
let a: Vec<String> = std::env::args().skip(1).collect();
|
|
if a.len() < 2 { eprintln!("usage: atlas <sortie.json> <sig.json>..."); std::process::exit(2) }
|
|
let sigs: Vec<Signature> = a[1..].iter().map(|f| Signature::from_json(&std::fs::read_to_string(f).unwrap()).unwrap()).collect();
|
|
std::fs::write(&a[0], serde_json::to_string_pretty(&archetype(&sigs)).unwrap()).unwrap();
|
|
}
|