Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Nov 25, 2017
1 parent 477facd commit 0ec3b29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ MY_EVV_VAR2=My second env var
```

### Kotlin
#### Configure dotenv-java
Configure `dotenv-java` once in your application.
#### Configure java-dotenv
Configure `java-dotenv` once in your application.

```kotlin
val dotenv = Dotenv
Expand All @@ -35,22 +35,22 @@ Note, environment variables specified in `.env` take precedence over those confi
```

### Java
#### Configure dotenv-java
Configure `dotenv-java` once in your application.
#### Configure java-dotenv
Configure `java-dotenv` once in your application.

```java
Dotenv dotenv = Dotenv
.configure()
.withDirectory("./src/test/resources")
.ignoreIfMalformed()
.build()
.build();
```

#### Get an environment variable
Note, environment variables specified in `.env` take precedence over those configured in the actual environment.

```
dotenv.get("MY_ENV_VAR1")
dotenv.get("MY_ENV_VAR1");
```

## License
Expand Down

0 comments on commit 0ec3b29

Please sign in to comment.