Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fizker/swift-environment-variables
Safely extract environment values
https://github.com/fizker/swift-environment-variables
Last synced: 4 days ago
JSON representation
Safely extract environment values
- Host: GitHub
- URL: https://github.com/fizker/swift-environment-variables
- Owner: fizker
- Created: 2021-12-27T08:54:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T08:43:24.000Z (2 months ago)
- Last Synced: 2024-09-18T11:33:03.084Z (2 months ago)
- Language: Swift
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swift-environment-variables
Safely extract environment values.
## How to use
1. Add `.package(url: "https://github.com/fizker/swift-environment-variables.git", from: "1.1.1")` to the list of dependencies in your Package.swift file.
2. Add `.product(name: "EnvironmentVariables", package: "swift-environment-variables")` to the dependencies of the targets that need to use the models.
3. Add `import EnvironmentVariables` in the file.
4. Then, Xcode can build the DocC documentation, which includes detailed examples for how to use the project.