From 326fce4299a638eb08dfb4b17b5d70cec8051f50 Mon Sep 17 00:00:00 2001 From: Juri Pakaste Date: Sat, 18 May 2024 15:52:51 +0300 Subject: [PATCH] Amend docs with export --- Sources/DotEnvy/Documentation.docc/Documentation.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Sources/DotEnvy/Documentation.docc/Documentation.md b/Sources/DotEnvy/Documentation.docc/Documentation.md index fc04839..e70278d 100644 --- a/Sources/DotEnvy/Documentation.docc/Documentation.md +++ b/Sources/DotEnvy/Documentation.docc/Documentation.md @@ -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