Skip to content

Commit

Permalink
Amend docs with export
Browse files Browse the repository at this point in the history
  • Loading branch information
juri committed May 18, 2024
1 parent 84ef1de commit bce71ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Sources/DotEnvy/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ func env() -> [String: String] {
}
```

If you want to override the process environment, you can use ``DotEnvironment/export(overwrite:)``:

```swift
import DotEnvy

func overrideEnv() throws {
let environment = try DotEnvironment.make()
environment.export()
}
```

## Topics

### Group

0 comments on commit bce71ed

Please sign in to comment.