Skip to main content

Module caches

Module caches 

Source
Expand description

putzen caches — interactive cache cleanup TUI.

Modules§

defaults
Catalogue of default cache directories scanned by putzen caches.
format
Pure formatters: human-readable bytes, durations, and display labels.
model
Pure data types for the cache TUI.
scan
Filesystem walk: enumerate seeds → ranked Cache entries.
tui
putzen caches interactive cache cleanup TUI.

Structs§

CachesArgs

Functions§

parse_duration
Accepts a duration like “24h”, “7d”, “2w”, or “1y”. Returns Err on parse failure.
resolve_path
Resolve a HOME-relative path string against $HOME. Absolute paths (/...) pass through unchanged.
run
select_seeds
Pick the seed set for the scan: --root values when given, otherwise the built-in defaults resolved against home. The two are alternatives rather than complementary — passing --root is the user telling us “scan this tree, not the usual ones”.