Packages
Reads the .toolfile settings for a directory, merged so that the nearest file wins.
Current section
Files
Jump to
Current section
Files
README.md
# toolfile
Reads the `.toolfile` settings for a directory, merged so that the nearest file wins, as the
[specification](https://github.com/toolfile/toolfile/blob/main/SPEC.md) defines them.
```elixir
Toolfile.load("docs") |> get_in(["dialogue", "decisions"]) # false
```
`Toolfile.load/0` reads the working directory. It raises `Toolfile.Error` when a file is not a valid toolfile, and the
message names the file.
Needs Elixir 1.15 or later.