use std::io::{self, Read};
use vios_core::devteam::{router::run_once, types::TaskSpec};
fn main() {
let mut buf = String::new();
io::stdin().read_to_string(&mut buf).unwrap_or(0);
let task = TaskSpec {
title: "Repo hygiene patch".into(),
constraints: vec!["offline".into(), "deterministic".into()],
content: buf,
};
let state = run_once(task);
println!("::plan::{}", state.plan.join(" | "));
for p in state.patches {
println!("::patch::{}::\n{}\n::endpatch::", p.path, p.diff);
}
println!("::notes::{}", state.notes.join(" | "));
}