DefaultKitCreationEnvironmentConfigService
struct DefaultKitCreationEnvironmentConfigService
The DefaultKitCreationEnvironmentConfigService
-
The home directory path
Declaration
Swift
let homeDirectoryPath: String? -
The environment config file name
Declaration
Swift
let environmentConfigFileName: String -
The URL type
Declaration
Swift
let urlType: URL.Type -
The Data type
Declaration
Swift
let dataType: Data.Type -
The JSONDecoder
Declaration
Swift
let jsonDecoder: JSONDecoder
-
Designated Initializer
Declaration
Swift
init(homeDirectoryPath: String? = ProcessInfo.processInfo.environment["HOME"], environmentConfigFileName: String = ".swiftkit-env.json", urlType: URL.Type = URL.self, dataType: Data.Type = Data.self, jsonDecoder: JSONDecoder = .init())Parameters
homeDirectoryPathThe home directory path. Default value
processInfo.environment["HOME"]environmentConfigFileNameThe environment config file name. Default value
.swiftkit-env.jsondataTyurlTypepeThe URL type. Default value
URL.selfdataTypeThe Data type. Default value
Data.selfjsonDecoderThe JSONDecoder. Default value
.init
-
The ServiceError
See moreDeclaration
Swift
enum ServiceError : Error
-
Get KitCreationEnvironmentConfig
Throws
If retrieving failsDeclaration
Swift
func get() throws -> KitCreationEnvironmentConfigReturn Value
The KitCreationEnvironmentConfig
View on GitHub
DefaultKitCreationEnvironmentConfigService Structure Reference