Expand description
~/.vitrify materialization and disk-wins resolution.
Only vitrify init stands the home up: it writes config.toml and
materializes the content. Every other command first checks that it is
set up — config.toml is there — and otherwise refuses, naming
vitrify init (require_set_up); the dispatch does it for all of
them, and the seams that write into the home check again.
The single resolution seam: brief, new, schema, and the
escalation template all resolve assets through here. A file on disk
overrides the embedded copy; a deleted file is restored on the next run;
an unmodified default follows the binary — it refreshes whenever the
embedded copy differs, an upgrade or a rebuild of the same version — and
overrides are left in place (vitrify init and vitrify probe report
them).
Structs§
- Asset
State - One asset’s home state, for
vitrify initandvitrify probeto report.
Enums§
Functions§
- config_
path ~/.vitrify/config.toml: the machine’s configuration, and the mark of a homevitrify inithas set up.- ensure_
materialized - Ensure
~/.vitrify/is materialized per the staleness rules; returns the per-asset state forinitandprobeto report. Idempotent; reached by every content consumer throughresolve, which refuses a home that is not set up, and byvitrify init, which sets it up. - not_
set_ up - The refusal every command that needs the home gives when it is not set up: exit 4, naming the one command that sets it up.
- require_
set_ up - Refuse unless
vitrify inithas set the home up. Every command butinitpasses through it, so none butinitever creates the home. - resolve
- Resolve one asset disk-first: the
~/.vitrifycopy wins over the embedded copy. Refuses a homevitrify inithas not set up; in one it has, materializes on every call (delete-restores).