Skip to main content

render_status_tui

Function render_status_tui 

Source
pub fn render_status_tui(
    repos_loader: &dyn Fn() -> Vec<RepoStatusEntry>,
) -> Result<Option<Vec<PathBuf>>>
Expand description

Render the full interactive status view.

Returns Some with the selected repositories’ paths if the user confirmed a prune, or None if they just quit. Paths, not indices: every i toggle reloads the list, and an ignored repository entering or leaving it renumbers everything — indices handed to the caller would address the list it loaded before any of that happened.

Re-runs automatically when the user toggles ignore config in devprune.json so the status reflects the change immediately.