pub fn gather(
root: &Path,
index: &Index,
peers: &[Peer],
) -> (Vec<IntentWorkUnit>, usize)Expand description
Every unit of work this checkout can see, and the ledger lines it could not read.
The tasks of this checkout’s ledger, titled from the active task or its archive; the closed session records of the shared layer whose episode no task here already holds; and every claim on the peer board. Nothing is written.
use majordomus_cli::intent_realization::gather;
let (units, skipped) = gather(std::path::Path::new("/nonexistent"), index, &[]);
// a checkout whose lifecycle never ran still has the shared layer's session records
assert_eq!(skipped, 0);
let _ = units;