Expand description
The environment as a layer.
The one layer every CLI in the fleet has, and the one every CLI writes again: mise reads 33 of
its settings through parse_env functions, hk’s generator emits a match arm per variable, fnox
has about 48 FNOX_* variables that live outside its registry entirely. All of them are doing
the same thing — look up the names a setting declares, take the first one that is set — and the
registry already knows those names.
The environment is injected rather than read at the point of use, so a test does not have to
touch the process to describe one, and two tests can describe different ones at the same time.
EnvLayer::from_process is the one place std::env is read.
Structs§
- EnvLayer
- Settings read from environment variables.