Skip to content

Commit 326fce4

Browse files
committed
Amend docs with export
1 parent a72bf0e commit 326fce4

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)