Std.App.Config
24 public declarations
- activeProfile
StrThe profile this invocation asked for, from the argument first and the
- Config
Everything the program was told, and which profile selected it.
- ConfigError
Why a setting could not be used.
- declaring
&Array[(Str, Str)] -> Std.App.Config.ConfigA configuration from declared defaults alone.
- discover
&Array[(Str, Str)] -> Str -> Result[Std.App.Config.Config, Std.App.Config.ConfigError]The configuration a program gets when it does not say otherwise: its own
- empty
Std.App.Config.ConfigAn empty configuration, holding nothing and naming no profile.
- entries
&Std.App.Config.Config -> Array[(Str, Std.App.Config.Setting)]Everything the program was told, in key order, for a program that reports
- explain
&Std.App.Config.ConfigError -> StrWhat a refusal says, for a program reporting why it will not start.
- fractional
&Std.App.Config.Config -> Str -> Result[Decimal, Std.App.Config.ConfigError]A setting as an exact fractional number.
- Layering
A configuration with one more layer written over it, each answering the
- layerOrder
Array[Std.App.Config.Source]The layers, in the order they apply, so a program can report the rule
- list
&Std.App.Config.Config -> Str -> Result[Array[Str], Std.App.Config.ConfigError]A setting as a list, written separated by commas.
- profileOf
&Std.App.Config.Config -> StrWhich profile is active.
- require
&Std.App.Config.Config -> Str -> Result[Str, Std.App.Config.ConfigError]A setting that must be there, for one the program cannot invent.
- Setting
A setting, and the layer that supplied it.
- Source
Where a setting came from.
- sourceName
&Std.App.Config.Source -> StrThe name of the layer, for a report.
- sourceOf
&Std.App.Config.Config -> Str -> Option[Std.App.Config.Source]Which layer supplied a setting.
- text
&Std.App.Config.Config -> Str -> Result[Str, Std.App.Config.ConfigError]A setting as text.
- textOr
&Std.App.Config.Config -> Str -> Str -> StrA setting as text, or a fallback when it is absent.
- truth
&Std.App.Config.Config -> Str -> Result[Bool, Std.App.Config.ConfigError]A setting as a truth.
- truthOr
&Std.App.Config.Config -> Str -> Bool -> BoolA setting as a truth, or a fallback.
- whole
&Std.App.Config.Config -> Str -> Result[Int, Std.App.Config.ConfigError]A setting as a whole number.
- wholeOr
&Std.App.Config.Config -> Str -> Int -> IntA setting as a whole number, or a fallback.
