pub fn attest(repo: &Path, command: &str) -> Result<Attestation>Expand description
Run command in repo and, when it passes, write and commit the branch’s receipt at
repo/RECEIPTS_DIR/<branch_slug>.json. A non-zero command leaves the receipts
untouched; the returned Attestation::exit_code carries the failure either way.