Add dotenv support

Open
#246 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start by reading the linked Zulip discussion and tracing the existing Env.var handling in the platform. Resolve whether dotenv files should load automatically or through an explicit API, then define the expected precedence and verification coverage; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Description

enhancement

As discussed on zulip, there should be some kind of support for reading environment variables via dotenv files. I think there are two possibilities here.

  1. Have a .env file be automatically loaded on any program using the platform.
  2. Have a function like Dotenv.load or Env.loadDotenv of type Task {} _ which loads the dotenv file and makes later calls to Env.var use the new environment variables.
Dominant language
Rust
Stars
121
Forks
45
Avg merge
18h 43m
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from roc-lang/basic-cli

All issues in roc-lang/basic-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.