let config = ConfigReader(providers: [ EnvironmentVariablesProvider(), try await JSONProvider(filePath: "/etc/config.json") ]) let httpTimeout = config.int(forKey: "http.timeout", default: 60) print(httpTimeout) // prints 15
Introducing Swift Configuration, a new way to share and manage configuration for Swift. It's a smarter way to keep secrets safe and separate develop/test/prod environments. More here: forums.swift.org/t/introducin...