Open jsirois opened 1 month ago
Arguably even better would be the ability to prune items not recently used. This requires the least understanding of Pex cache internals and is likely the most familiar metric. I'll land this capability 1st since it requires much of the same infrastructure needed to support the OP.
It would be useful to be able to manipulate distributions in the Pex cache since these are the chief contributors to cache size and the cache items most directly identifiable to an end user since they ask for them in requirements.
Subject to spelling, the actions would be:
pex3 cache add
a distribution to prep for offline use.pex3 cache remove
one or more distributions safely (paying mind to unzipped_pexes and venvs symlinks).pex3 cache list
to list distributions and their sizes much like the broader pex3 cache info.