rust-cli / rust-cli/config-rs

reading values via environment variables in bash

Open
#569 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-env
Dominant language
Rust
Stars
3.2k
Forks
265
Avg merge
2h 42m
Merged PRs (30d)
4

Description

Reading nested environment variables is kind of impossible when using this library.

Env variables like:
APP.NESTED_CONFIG.VALUE

Don't really work in Bash, the workaround is to use a double underscore for separators __, I guess parsing would have been a bit harder if _ would be supported in that case. But from a usability perspective this is a real foodgun.

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

The issue names no file, test, or entry point. Start by locating the environment-variable parsing code and its existing nested-key separator behavior; define the expected handling for APP.NESTED_CONFIG.VALUE and the __ workaround before adding coverage. Done means nested values can be read from Bash without the reported usability problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, rust
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.