use adrs_core::Repository;
fn main() -> adrs_core::Result<()> {
let tmp = tempfile::tempdir().expect("create temp dir");
let repo = Repository::init(tmp.path(), None, false)?;
let (adr, path) = repo.new_adr("Use PostgreSQL for persistence")?;
println!("Created ADR {:04} at {}", adr.number, path.display());
println!("\nAll ADRs:");
for adr in repo.list()? {
println!(" {:04} {} [{}]", adr.number, adr.title, adr.status);
}
Ok(())
}