Skip to main content

Module layer

Module layer 

Source
Expand description

Where values come from, as an interface.

usage supplies the command line, the environment and declared defaults. Everything else a CLI reads — a git config, a pkl file, an .npmrc, a keyring — is a layer the CLI writes, and it writes it against this trait plus Registry::bindings, which is why hk’s git layer is about twenty lines rather than a second resolution system.

Structs§

Entry
One value a layer supplies.
LayerCtx
What a layer is given while it reads.
LayerOutput
What a layer found.
Warning
Something a user should know about, which is not bad enough to stop for.

Enums§

LayerError
Anything that can fail while a layer reads.
WarningKind
The kinds of thing a resolution has to say.

Traits§

Layer
A source of configuration values.