app
AI Flow: JLCPCB
Public Made by Adomby adom
The whole JLCPCB order, from gerbers to assembled boards in hand: proven part swaps, design rules, rotation checks, quote and order.
main
//! Every command answers the AI the same way: `OK: <what happened>` or `ERROR: <what is wrong>`,
//! then `Hint:` lines that depend on this project and this run. Exit 1 on ERROR.
pub fn ok(msg: &str, hints: &[String]) {
println!("OK: {msg}");
for h in hints.iter().filter(|h| !h.is_empty()) { println!("Hint: {h}"); }
}
pub fn err(msg: &str, hints: &[String]) -> ! {
println!("ERROR: {msg}");
for h in hints.iter().filter(|h| !h.is_empty()) { println!("Hint: {h}"); }
std::process::exit(1)
}