ConfigSourceRecord
PackageAxial.Configuration
One named configuration layer. Reading is the effect; the result is plain Data.
Fields
| Name | Type | Description |
|---|---|---|
| Name | Name | The layer name shown in messages. |
| Spell | Spell | Writes a model path in this layer's own notation, for omission messages. |
| Read | Read | Reads the layer; source failures are typed and accumulated by Config.load. |
| Paths | Paths | Files this layer reads, watched by Config.watch; empty for static layers. |
Specification
Kind
Record
Members
8
Examples
0
environmentSignature
environment prefix
environmentOfSignature
environmentOf prefix pairs
commandLineSignature
commandLine arguments
jsonFileSignature
jsonFile path
optionalJsonFileSignature
optionalJsonFile path
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| environment | environment prefix | Reads the live process environment once, split by the __ convention, optionally under a prefix. |
| environmentOf | environmentOf prefix pairs | Reads a fixed set of environment-style pairs; use it in tests and for host-supplied environments. |
| commandLine | commandLine arguments | Reads command-line arguments, including nested --Db:Port, repeated values and positionals. |
| jsonFile | jsonFile path | Reads one JSON file through IHasFileSystem; a missing file is a source failure. |
| optionalJsonFile | optionalJsonFile path | Reads one JSON file when it exists and an empty object when it does not. |
| json | json name text | Reads JSON text already in memory; a parse failure is a source failure. |
| queryString | queryString search | Reads a browser query string such as ?Db.Host=localhost&Db.Port=5432. |
| ofData | ofData name data | Reads structured data provided by the caller; use it for defaults, fixtures and fakes. |
Operations
kind:member
kind:member
kind:member
kind:member
Reads one JSON file through IHasFileSystem; a missing file is a source failure.
Parameters
| Name | Type | Description |
|---|---|---|
| path | string |
Returns
ConfigSource<'env>
kind:member
kind:member
kind:member

