Skip to content

Commit

Permalink
fix: Path interal correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
custompro98 committed Jul 3, 2024
1 parent 634f998 commit 4e4a378
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ pub fn main() {
}
```

## Expected values

### Bool

Any casing of `true`, `yes` or `1` will be parsed as `True`. Any other value will be parsed as `False`.

### Float

Any value that can be parsed as a float will be parsed as a float. Any other value will result in an `InvalidEnvValue` error.

### Int

Any value that can be parsed as an int will be parsed as an int. Any other value will result in an `InvalidEnvValue` error.

### String

Any value will be parsed as a string.

Further documentation can be found at <https://hexdocs.pm/glenv>.

## Development
Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "glenv"
version = "0.2.0"
version = "0.2.1"
licences = ["Apache-2.0"]
repository = { type = "github", user = "custompro98", repo = "glenv" }
description = "A library for type-safe environment variable access."
Expand Down
2 changes: 1 addition & 1 deletion src/glenv.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import gleam/dict
import gleam/dynamic
import gleam/list
import gleam/result
import glenv/internal/parse
import gleam/string
import internal/parse

/// Type represents the type of an environment variable.
/// This dictates how the environment variable is parsed.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleam/dynamic
import gleeunit
import gleeunit/should
import internal/parse
import glenv/internal/parse

pub fn main() {
gleeunit.main()
Expand Down

0 comments on commit 4e4a378

Please sign in to comment.