Skip to content

Commit bce71ed

Browse files
committedMay 18, 2024
Amend docs with export
1 parent 84ef1de commit bce71ed

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎Sources/DotEnvy/Documentation.docc/Documentation.md

+11
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ func env() -> [String: String] {
8080
}
8181
```
8282

83+
If you want to override the process environment, you can use ``DotEnvironment/export(overwrite:)``:
84+
85+
```swift
86+
import DotEnvy
87+
88+
func overrideEnv() throws {
89+
let environment = try DotEnvironment.make()
90+
environment.export()
91+
}
92+
```
93+
8394
## Topics
8495

8596
### Group

0 commit comments

Comments
 (0)