cleaner

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package cleaner orchestrates the quarantine-and-report pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, items []types.Item, scanResult *types.ScanResult, cfg *config.Config, progress types.ProgressFn) (*types.CleanResult, error)

Run is the top-level clean entry point: it picks quarantine or direct delete based on cfg, and writes a JSON report when scanResult is provided. cfg may be nil to imply "use quarantine" — the CLI and the TUI both rely on this default for first-run, config-not-yet-loaded cases. progress is an optional callback for per-file progress during quarantine moves; nil disables progress reporting.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL