Skip to main content

Module caches

Module caches 

Source
Expand description

Command handler modules.

Each subcommand has its own module with a run() function.

Structs§

CacheReport
One cache directory that exists on this machine.
ClearOutcome
What happened to one cache.

Enums§

Clear
How one cache is emptied.

Functions§

confirm_clear
Ask before anything is emptied. --yes answers for the user; a pipe or a script without it gets a “no” plus the flag to pass next time.
is_cache_manager
Whether name is a cache manager dev-prune knows, for validating cache_max_gb.
known_managers
Every manager name clear accepts, in report order, without repeats.
run
Run the caches command, for the whole machine or for one drive.
run_clear
Run dev-prune caches clear <target>.