WardrikDaemon. EnvFile
(wardrik_daemon v0.1.0-rc.1)
Copy Markdown
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.
Summary
Functions
Returns env with each variable the file at path sets that env doesn't. A missing file sets none.
Returns the line numbers in the file at path that set no variable and aren't blank or a comment.
Functions
@spec load(Path.t(), %{required(String.t()) => String.t()}) :: %{ required(String.t()) => String.t() }
Returns env with each variable the file at path sets that env doesn't. A missing file sets none.
@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.