Package-level declarations

Types

Link copied to clipboard
data class Authority(val host: Host, val port: Port? = null)
Link copied to clipboard
interface Environment

This models the runtime environment of the shell where the app is running. Optionally pass a separator to use for multi-values otherwise a standard comma is used - this means you MUST override the separator if you have single values which contain commas, otherwise singular environment keys will just retrieve the first value.

Link copied to clipboard

This models the key used to get a value out of the Environment using the standard Lens mechanic. Note that if your values contain commas, either use a EnvironmentKey.(mapping).multi.required()/optional()/defaulted() to retrieve the entire list, or override the comma separator in your initial Environment.

Link copied to clipboard
data class Host(val value: String)
Link copied to clipboard
Link copied to clipboard
data class Port(val value: Int)
Link copied to clipboard
class Secret(input: ByteArray) : Closeable

A secret is a value which tries very hard not to expose itself as a string, by storing it's value in a byte array. You can "use" the value only once, after which the value is destroyed

Link copied to clipboard
data class Timeout(val value: Duration)

Functions

Link copied to clipboard
inline fun <T : Enum<T>> EnvironmentKey.enum(caseSensitive: Boolean = true): BiDiLensSpec<Environment, T>
Link copied to clipboard
Link copied to clipboard

Read a YAML file into environments, prepending all of the nested levels into the property names

Read a YAML file from resources into environments, prepending all of the nested levels into the property names