Skip to main content

Module record

Module record 

Source
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§

InstalledTool
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
tools with what an install of dependency added (installed) recorded at now, 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 than PENDING_FOR_SECS at now; a record left with nothing goes.