Skip to main content

prune_done_tasks

Function prune_done_tasks 

Source
pub fn prune_done_tasks(
    done_path: &Path,
    options: PruneOptions,
) -> Result<PruneReport>
Expand description

Prune tasks from the done archive based on age, status, and keep-last rules.

This function loads the done archive, applies pruning rules, and optionally saves the result. Pruning preserves the original order of remaining tasks.

§Arguments

  • done_path - Path to the done archive file
  • options - Pruning options (age filter, status filter, keep-last, dry-run)

§Returns

A PruneReport containing the IDs of pruned and kept tasks.