# `WardrikDaemon.EnvFile`

Reads the env file: variables the daemon sets where its environment doesn't.

    # Keys config.yaml names
    ANTHROPIC_API_KEY=sk-ant-...
    export SLACK_BOT_TOKEN="xoxb-..."

One `NAME=value` a line, with an optional `export` and optional quotes. Blank lines and `#`
comments are skipped. Keep the keys and tokens `config.yaml` names here, so `config.yaml` holds
no secret.

# `load`

```elixir
@spec load(Path.t(), %{required(String.t()) =&gt; String.t()}) :: %{
  required(String.t()) =&gt; String.t()
}
```

Returns `env` with each variable the file at `path` sets that `env` doesn't. A missing file sets none.

# `unread`

```elixir
@spec unread(Path.t()) :: [pos_integer()]
```

Returns the line numbers in the file at `path` that set no variable and aren't blank or a comment.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
