roc-lang / roc-lang/basic-cli

Add dotenv support

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

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
121
Forks
45
Avg merge
18h 43m
Merged PRs (30d)
10

Description

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.

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.