pub(crate) fn repair(log_file: &str, flags: &[&str])Expand description
choir repair <log-file> --verify | --truncate-tail.
Run against a log no daemon is holding. Nothing here takes a lock, because the only safe way to repair a log is for nothing to be appending to it, and a lock would suggest otherwise.
Exit codes follow the binary’s convention: 0 the log is usable (or was made usable), 1 it is damaged and this cannot fix it, 2 usage.