Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Environment

Build Status Platforms Package Managers

Blog Twitter Czechboy0

Easy access to environment variables from Swift. Linux & OS X ready.

Installation

Swift Package Manager

.Package(url: "https://github.com/czechboy0/Environment.git", majorVersion: 0, minor: 5)

Usage

Easily get, set and remove environment variables.

Env["PATH"] //Optional("/Users/honzadvorsky/") //get value for key `PATH`
Env["TEST_RESULT"] = "1" //set value for key `TEST_RESULT`
Env["TEST_RESULT"] = nil //remove value for key `TEST_RESULT`
Env.all() //[String: String] - get all environment variables keyed by their name

💝 Contributing

Please create an issue with a description of your problem or open a pull request with a fix.

✌️ License

MIT

👽 Author

Honza Dvorsky - http://honzadvorsky.com, @czechboy0

About

Easy access to environment variables from Swift. Linux & OS X ready.

Resources

License

Packages

No packages published
You can’t perform that action at this time.