app
AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
main
John Lauer
Flow-app template, step --hwnd, jlcpcb fit column (on 0.1.57)
9ddc18b
//! 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)
}