
tech.codingzen.kata.konfig.env.EnvVarSource.kt Maven / Gradle / Ivy
package tech.codingzen.kata.konfig.env
import tech.codingzen.kata.konfig.retriever.KataKonfRetriever
@JvmInline
value class EnvVarSource(val source: Map): KataKonfRetriever {
companion object {
val system: EnvVarSource = EnvVarSource(System.getenv())
}
operator fun get(key: String) = source[key]
operator fun contains(key: String) = key in source
override fun retrieve(name: String): String? = get(name)
override fun list(name: String): List? = null
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy