pub fn take_top(
repos: &[RepoStatusEntry],
top: Option<usize>,
) -> Vec<RepoStatusEntry>Expand description
The n repositories with the most reclaimable space, or all of them when top is
None.
devp status lists every registered repository, which on a machine tracking a hundred
of them pushes the handful actually worth pruning off the screen. Selection is by
reclaimable bytes, descending; the survivors are then put back into the order
get_full_status produced, so a truncated dashboard reads like a shorter version of
the full one rather than a differently-sorted one.