Expand description
What setups added, on record, so a clean-up removes what they added and only that: each
install’s Installed (super::added), never the items that were there before it. A tool
whose install only opened its vendor’s installer (a macOS cask), or which isn’t found yet,
counts once a later check finds it (settle). The rules are here; the caller keeps the
records where it keeps its data, and reads and writes them in one transaction around
remember and settle.
Structs§
- Installed
Tool - What setups added of a tool, on record.
Constants§
- PENDING_
FOR_ SECS - How long an opened installer may take to be finished before what waits for it is dropped: a tool that shows up later than that was most likely installed some other way.
Functions§
- remember
toolswith what an install ofdependencyadded (installed) recorded atnow, beside what earlier installs added: one record a tool. An install that added nothing, nor left anything waiting, records nothing.- removable
- The records of tools something was added to: what a clean-up may offer to remove.
- settle
- Adds to each record the items it waited for that are now there (
there, by tool), and drops what has waited longer thanPENDING_FOR_SECSatnow; a record left with nothing goes.