pub fn ready_units(index: &Index) -> Vec<&IndexEntry>Expand description
Return units with all dependencies satisfied (ready to dispatch).
A unit is “ready” if it has a verify command, its status is Open,
and all of its explicit dependency IDs are closed in the active index
or archived.
§Example
use mana_core::api::{load_index, ready_units};
use std::path::Path;
let mana_dir = Path::new("/project/.mana");
let index = load_index(mana_dir).unwrap();
let ready = ready_units(&index);
for entry in ready {
println!("Ready: {} {}", entry.id, entry.title);
}