ConfigModule
PackageAxial.Configuration
Loads, decodes and watches layered configuration.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| load | Config.load schema sources | Reads every source, merges them with later-wins precedence and decodes the result with schema. |
| loadData | Config.loadData sources | Reads and merges every source without decoding a model. |
| parse | Config.parse schema config | Decodes an already merged snapshot; this is pure and safe to call in tests. |
| section | Config.section path schema | Decodes one section of an already loaded snapshot. |
| ofData | Config.ofData data | Creates a configuration snapshot from structured data; the fake used by tests. |
| required | Config.required path | Reads a required text value at a Reified data path, comparing keys ordinal-ignore-case. |
| optional | Config.optional path | Reads an optional text value at a Reified data path; absent is None, not an error. |
| tryFind | Config.tryFind path config | Reads a text value from an already loaded snapshot without starting a flow. |
| processArg | Config.processArg secret | Bridges a schema-declared secret into a redacted process argument without exposing its payload. |
| watch | Config.watch sources schema | Watches file sources and publishes each successfully decoded configuration. |
Operations
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
Bridges a schema-declared secret into a redacted process argument without exposing its payload.
Parameters
| Name | Type | Description |
|---|---|---|
| secret | Secret<'value> |
Returns
SecretArgument
Verification Examples
let deploy (token: Reified.Refinements.Secret<string>) =
Axial.Process.DSL.cmd $"deploy --token {Axial.Configuration.Config.processArg token}"
