pub fn run(top: Option<usize>, drift: bool, json_output: bool) -> Result<()>Expand description
Run the status command.
json replaces the dashboard with one machine-readable document — no banner, no
TUI, no prompt to prune. It deletes nothing, which is what makes it safe to hand to
an agent or a monitoring job. It may still register the repository the caller is
standing in, on both paths and deliberately: an agent that asks about a repository
and a human who asks about the same one must not get different answers.
top trims the repository list to the biggest reclaims. It never changes the totals:
those are computed over every registered repository, so --top 5 cannot make a
machine look tidier than it is.
drift replaces the dashboard with the lockfile-drift report — the environments
holding packages their lockfile never recorded, found before a prune would refuse
on them.