diff --git a/Sources/EnvironmentVariable/EnvironmentVariable.swift b/Sources/EnvironmentVariable/EnvironmentVariable.swift index 8296929..9bfdfa1 100644 --- a/Sources/EnvironmentVariable/EnvironmentVariable.swift +++ b/Sources/EnvironmentVariable/EnvironmentVariable.swift @@ -23,7 +23,7 @@ import Foundation /// [Environment variables in Mac OSX](https://stackoverflow.com/a/4567308) @propertyWrapper public struct EnvironmentVariable { - var name: String + public var name: String public var wrappedValue: String? { get { @@ -38,4 +38,8 @@ public struct EnvironmentVariable { setenv(name, value, 1) } } + + public init(name: String) { + self.name = name + } }