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 is a pure read of state, which is what makes it safe to
hand to an agent or a monitoring job.
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.